Package org.zkoss.chart
Class Position
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.Position
-
- All Implemented Interfaces:
Serializable
,OptionDataListener
,org.zkoss.json.JSONAware
public class Position extends Optionable
A position option to specify the position for buttons or labels.All the options in this class support
DynamicalAttribute
.- Author:
- jumperchen
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAlign()
Returns the alignment of the positionString
getVerticalAlign()
Returns the vertical alignment of the positionNumber
getX()
Returns the x offset.Number
getY()
Returns the y offset.void
setAlign(String align)
Sets the alignment of the positionvoid
setVerticalAlign(String verticalAlign)
Sets the vertical alignment of the positionvoid
setX(Number x)
Sets the x offset.void
setY(Number y)
Sets the y offset.-
Methods inherited from class org.zkoss.chart.Optionable
addExtraAttr, addOptionDataListener, clearOptonDataListener, clone, containsKey, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getAttr, getAttr, getClientState, getExtraAttr, merge, onChange, removeExtraAttr, removeKey, removeOptionDataListener, setAttr, setAttr, setAttr, setAttr, toJSONString, toString
-
-
-
-
Method Detail
-
setX
public void setX(Number x)
Sets the x offset.- Parameters:
x
-
-
getX
public Number getX()
Returns the x offset.
-
setY
public void setY(Number y)
Sets the y offset.- Parameters:
y
-
-
getY
public Number getY()
Returns the y offset.
-
setAlign
public void setAlign(String align)
Sets the alignment of the position
-
getAlign
public String getAlign()
Returns the alignment of the positionDefault: null
-
setVerticalAlign
public void setVerticalAlign(String verticalAlign)
Sets the vertical alignment of the position
-
getVerticalAlign
public String getVerticalAlign()
Returns the vertical alignment of the positionDefault: null
-
-