public class ElementText extends Element implements ElementText
Title: ElementText
Description: A Text using the painter's algorithm
targetPosition, targetSizeJUSTIFICATION_CENTER, JUSTIFICATION_LEFT, JUSTIFICATION_RIGHTTARGET_POSITION, TARGET_SIZE| Constructor and Description |
|---|
ElementText() |
ElementText(java.lang.String text) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Font |
getFont()
Gets the font of the text
|
int |
getJustification()
Gets the justification of the text
|
static XML.ObjectLoader |
getLoader()
Returns an XML.ObjectLoader to save and load object data.
|
double |
getRotationAngle()
Gets the rotation angle for the text
|
protected InteractionTarget |
getTargetHit(int x,
int y)
Gets the target that is under the (x,y) position of the screen
|
java.lang.String |
getText()
Gets the text displayed
|
void |
setFont(java.awt.Font font)
Sets the font for the text
|
void |
setJustification(int justification)
Sets the justification for the text
|
void |
setRotationAngle(double angle)
Sets the rotation angle for the text.
|
void |
setText(java.lang.String text)
Sets the text to be displayed
|
addInteractionListener, getHotSpotBodyCoordinates, getInteractionTarget, getName, getSizeX, getSizeY, getSizeZ, getStyle, getTransformation, getX, getY, getZ, isReallyVisible, isVisible, loadUnmutableObjects, removeInteractionListener, setName, setSizeX, setSizeXYZ, setSizeXYZ, setSizeY, setSizeZ, setTransformation, setVisible, setX, setXYZ, setXYZ, setY, setZ, toBodyFrame, toSpaceFrameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getSizeX, getSizeY, getSizeZ, getStyle, getTransformation, getX, getY, getZ, isVisible, loadUnmutableObjects, setName, setSizeX, setSizeXYZ, setSizeXYZ, setSizeY, setSizeZ, setTransformation, setVisible, setX, setXYZ, setXYZ, setY, setZ, toBodyFrame, toSpaceFrameaddInteractionListener, getInteractionTarget, removeInteractionListenerpublic ElementText()
public ElementText(java.lang.String text)
public void setText(java.lang.String text)
ElementTextsetText in interface ElementTexttext - the Stringpublic java.lang.String getText()
ElementTextgetText in interface ElementTextpublic void setFont(java.awt.Font font)
ElementTextsetFont in interface ElementTextfont - Fontpublic java.awt.Font getFont()
ElementTextgetFont in interface ElementTextpublic void setJustification(int justification)
ElementTextsetJustification in interface ElementTextpublic int getJustification()
ElementTextgetJustification in interface ElementTextpublic void setRotationAngle(double angle)
ElementTextsetRotationAngle in interface ElementTextangle - the rotation anglepublic double getRotationAngle()
ElementTextgetRotationAngle in interface ElementTextprotected InteractionTarget getTargetHit(int x, int y)
ElementgetTargetHit in class Elementx - inty - intpublic static XML.ObjectLoader getLoader()