Package com.storedobject.chart
Class Text
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.Shape
com.storedobject.chart.Text
- All Implemented Interfaces:
Component
,ComponentPart
,ComponentProperty
,HasPosition
Text that can be added to
SOChart
.- Author:
- Syam
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.chart.Shape
Shape.Point, Shape.Style
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Encode the JSON string with the properties of this.getAlignment
(boolean create) Get text alignment.getFont()
Get the current font.getText()
Get current content.protected final String
getType()
Get the type of this shape.void
setAlignment
(Alignment alignment) Set text alignment.void
Set the font.void
setStyle
(Shape.Style style) Set style.void
Set the content.Methods inherited from class com.storedobject.chart.Shape
encode, encodePoint, encodePoint, encodeShape, getPosition, getStyle, hide, isDraggable, setDraggable, setPosition, setPosition, setPosition, show, validate
Methods inherited from class com.storedobject.chart.AbstractPart
equals, getId, getLabelTag, getName, getSerial, getZ, hashCode, hasId, setSerial, setZ
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.chart.ComponentPart
className, getId, getName, getRenderingIndex, getSerial, setName, setRenderingIndex, setSerial
-
Constructor Details
-
Method Details
-
getType
-
encodeJSON
Description copied from interface:ComponentProperty
Encode the JSON string with the properties of this.- Specified by:
encodeJSON
in interfaceComponentProperty
- Overrides:
encodeJSON
in classShape
- Parameters:
sb
- Encoded JSON string to be appended to this.
-
setStyle
Description copied from class:Shape
Set style. -
getText
-
setText
-
setFont
-
getFont
-
getAlignment
Get text alignment.- Parameters:
create
- Whether to create it or not, if it doesn't exists.- Returns:
- Alignment.
-
setAlignment
Set text alignment.- Parameters:
alignment
- Alignment.
-