|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgoanim.primitives.Primitive
algoanim.primitives.AdvancedTextSupport
algoanim.primitives.Text
public class Text
Represents a text specified by an upper left position and a content.
| Field Summary |
|---|
| Fields inherited from class algoanim.primitives.Primitive |
|---|
gen |
| Constructor Summary | |
|---|---|
Text(TextGenerator tg,
Node upperLeftCorner,
java.lang.String theText,
java.lang.String name,
DisplayOptions display,
TextProperties tp)
Instantiates the Text and calls the create() method of the
associated TextGenerator. |
|
| Method Summary | |
|---|---|
TextProperties |
getProperties()
Returns the properties of this Text element. |
java.lang.String |
getText()
Returns the content of this Text element. |
Node |
getUpperLeft()
Returns the upper left corner of this Text element. |
void |
setName(java.lang.String newName)
Sets the name of this Primitive. |
| Methods inherited from class algoanim.primitives.AdvancedTextSupport |
|---|
setFont, setText |
| Methods inherited from class algoanim.primitives.Primitive |
|---|
changeColor, exchange, getDisplayOptions, getName, hide, hide, moveBy, moveTo, moveVia, rotate, rotate, show, show |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Text(TextGenerator tg,
Node upperLeftCorner,
java.lang.String theText,
java.lang.String name,
DisplayOptions display,
TextProperties tp)
Text and calls the create() method of the
associated TextGenerator.
tg - the appropriate code Generator.upperLeftCorner - the upper left corner of this Text element.theText - the content of this Text element.name - the name of this Text element.display - [optional] the DisplayOptions of this
Text element.tp - [optional] the properties of this Text element.| Method Detail |
|---|
public TextProperties getProperties()
Text element.
Text element.public java.lang.String getText()
Text element.
Text element.public Node getUpperLeft()
Text element.
Text element.public void setName(java.lang.String newName)
PrimitivePrimitive.
setName in class PrimitivenewName - the new name for this Primitive.Primitive.setName(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||