|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Title: ElementSegment
Description: A 3D Segment.
Nested Class Summary | |
static class |
ElementText.Loader
|
Field Summary | |
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 |
Fields inherited from interface org.opensourcephysics.display3d.core.Element |
TARGET_POSITION, TARGET_SIZE |
Method Summary | |
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 |
Methods inherited from interface org.opensourcephysics.display3d.core.Element |
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, toSpaceFrame |
Methods inherited from interface org.opensourcephysics.display3d.core.interaction.InteractionSource |
addInteractionListener, getInteractionTarget, removeInteractionListener |
Field Detail |
public static final int JUSTIFICATION_CENTER
public static final int JUSTIFICATION_LEFT
public static final int JUSTIFICATION_RIGHT
Method Detail |
public void setText(java.lang.String text)
text
- the Stringpublic java.lang.String getText()
public void setFont(java.awt.Font font)
font
- Fontpublic java.awt.Font getFont()
public void setJustification(int justification)
public int getJustification()
public void setRotationAngle(double angle)
angle
- the rotation anglepublic double getRotationAngle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |