|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.drawing3d.Element org.opensourcephysics.drawing3d.ElementText
public class ElementText
Title: ElementText
Field Summary |
---|
Fields inherited from class org.opensourcephysics.drawing3d.Element |
---|
CHANGE_COLOR, CHANGE_GROUP, CHANGE_INTERACTION_POINTS, CHANGE_NONE, CHANGE_POSITION, CHANGE_POSITION_AND_SIZE, CHANGE_PROJECTION, CHANGE_RESOLUTION, CHANGE_SHAPE, CHANGE_SIZE, CHANGE_TRANSFORMATION, CHANGE_VISIBILITY, STD_CENTERED_END, STD_CENTERED_ORIGIN, STD_END, STD_ORIGIN, TARGET_POSITION, TARGET_SIZE, TO_RADIANS, X_UNIT_VECTOR, Y_UNIT_VECTOR, Z_UNIT_VECTOR |
Constructor Summary | |
---|---|
ElementText()
|
Method Summary | |
---|---|
double |
getDiagonalSize()
Returns the diagonal size of the element, i.e., Math.sqrt(sizeX*sizeX+sizeY*sizeY+sizeZ*sizeZ) |
java.awt.Font |
getFont()
Gets the font of the text |
double |
getRotationAngle()
Gets the rotationangle of the text |
java.lang.String |
getText()
Gets the text displayed |
TextLine |
getTextLine()
Returns the TextLine object of the element |
boolean |
isTrueSize()
Get whether the size should be that prescribed by the font |
void |
setFont(java.awt.Font _font)
Sets the font for the text |
void |
setRotationAngle(double _angle)
Sets the rotation angle of the text |
void |
setSizeX(double _sizeX)
Sets the size along the X axis |
void |
setSizeY(double _sizeY)
Sets the size along the Y axis |
void |
setSizeZ(double _sizeZ)
Sets the size along the Z axis |
void |
setText(java.lang.String _text)
Sets the text to be displayed |
void |
setTrueSize(boolean _s)
Set whether the size should be that prescribed by the font |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ElementText()
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 setRotationAngle(double _angle)
_angle
- doublepublic double getRotationAngle()
public void setTrueSize(boolean _s)
_s
- booleanpublic boolean isTrueSize()
public void setSizeX(double _sizeX)
Element
setSizeX
in class Element
_sizeX
- doublepublic void setSizeY(double _sizeY)
Element
setSizeY
in class Element
_sizeY
- doublepublic void setSizeZ(double _sizeZ)
Element
setSizeZ
in class Element
_sizeZ
- doublepublic TextLine getTextLine()
public double getDiagonalSize()
Element
getDiagonalSize
in class Element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |