public interface ElementText extends Element
Title: ElementSegment
Description: A 3D Segment.
| Modifier and Type | Interface and Description |
|---|---|
static class |
ElementText.Loader |
| Modifier and Type | Field and Description |
|---|---|
static int |
JUSTIFICATION_CENTER
Center the Text over the point
|
static int |
JUSTIFICATION_LEFT
Position the Text to the Left of the point
|
static int |
JUSTIFICATION_RIGHT
Position the Text to the Right of the point
|
TARGET_POSITION, TARGET_SIZE| Modifier and Type | Method and Description |
|---|---|
java.awt.Font |
getFont()
Gets the font of the text
|
int |
getJustification()
Gets the justification of the text
|
double |
getRotationAngle()
Gets the rotation angle for the text
|
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
|
getName, 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, removeInteractionListenerstatic final int JUSTIFICATION_CENTER
static final int JUSTIFICATION_LEFT
static final int JUSTIFICATION_RIGHT
void setText(java.lang.String text)
text - the Stringjava.lang.String getText()
void setFont(java.awt.Font font)
font - Fontjava.awt.Font getFont()
void setJustification(int justification)
font - Fontint getJustification()
void setRotationAngle(double angle)
angle - the rotation angledouble getRotationAngle()