public class TextItem extends LightBoxItem implements java.io.Serializable
Constructor and Description |
---|
TextItem()
Instantiates a new text item.
|
Modifier and Type | Method and Description |
---|---|
int |
getFontSize()
Gets the font size.
|
java.awt.geom.Point2D.Float |
getSize()
Gets the size.
|
java.lang.String |
getText()
Gets the text.
|
void |
setFontSize(int fontSize)
Sets the font size.
|
void |
setSize(java.awt.geom.Point2D.Float size)
Sets the size.
|
void |
setText(java.lang.String text)
Sets the text.
|
getPosition, getRotationDegrees, isMoveable, setMoveable, setPosition, setRotationDegrees
public int getFontSize()
public java.awt.geom.Point2D.Float getSize()
public java.lang.String getText()
public void setFontSize(int fontSize)
fontSize
- the new font sizepublic void setSize(java.awt.geom.Point2D.Float size)
size
- the new sizepublic void setText(java.lang.String text)
text
- the new text