|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.wtk.media.drawing.Shape
pivot.wtk.media.drawing.Text
public class Text
Shape representing a block of text.
TODO We may need to specify a font here - otherwise, we won't be able to calculate the bounds.
Constructor Summary | |
---|---|
Text()
|
Method Summary | |
---|---|
boolean |
contains(int x,
int y)
TODO Subclasses should override this method to perform an inverse transformation and map to the untransformed coordinate space. |
java.awt.Font |
getFont()
|
int |
getHeight()
Returns the visual's height. |
java.lang.String |
getText()
|
int |
getWidth()
Returns the visual's width. |
int |
getWrapWidth()
|
void |
paint(java.awt.Graphics2D graphics)
Paints the visual. |
void |
setFont(java.awt.Font font)
|
void |
setText(java.lang.String text)
|
void |
setWrapWidth(int wrapWidth)
|
Methods inherited from class pivot.wtk.media.drawing.Shape |
---|
getBounds, getFill, getOrigin, getParent, getRotation, getScaleX, getScaleY, getStroke, getStrokeThickness, getTransform, getTranslateX, getTranslateY, getX, getY, setFill, setFill, setOrigin, setOrigin, setParent, setRotation, setScaleX, setScaleY, setStroke, setStroke, setStrokeThickness, setTranslateX, setTranslateY, setX, setY |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Text()
Method Detail |
---|
public java.lang.String getText()
public void setText(java.lang.String text)
public java.awt.Font getFont()
public void setFont(java.awt.Font font)
public int getWrapWidth()
public void setWrapWidth(int wrapWidth)
public int getWidth()
Visual
public int getHeight()
Visual
public void paint(java.awt.Graphics2D graphics)
Visual
graphics
- The graphics context in which to paint the visual.public boolean contains(int x, int y)
Shape
contains
in class Shape
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |