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 StringgetAlign()Returns the alignment of the positionStringgetRelativeTo()Returns what the fixed tooltip alignment should be relative to.StringgetVerticalAlign()Returns the vertical alignment of the positionNumbergetX()Returns the x offset.NumbergetY()Returns the y offset.voidsetAlign(String align)Sets the alignment of the positionvoidsetRelativeTo(String relativeTo)Sets what the fixed tooltip alignment should be relative to.voidsetVerticalAlign(String verticalAlign)Sets the vertical alignment of the positionvoidsetX(Number x)Sets the x offset.voidsetY(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
-
setRelativeTo
public void setRelativeTo(String relativeTo)
Sets what the fixed tooltip alignment should be relative to. The default, pane, means that it is aligned within the plot area for that given series. If the tooltip is split (as default in Stock charts), each partial tooltip is aligned within the series' pane. Accepted values: "pane", "chart", "plotBox", "spacingBox" Notice that this property is only used in TooltipDefault: "pane".
- Since:
- 12.2.0.0
-
getRelativeTo
public String getRelativeTo()
Returns what the fixed tooltip alignment should be relative to. The default, pane, means that it is aligned within the plot area for that given series. If the tooltip is split (as default in Stock charts), each partial tooltip is aligned within the series' pane. Accepted values: "pane", "chart", "plotBox", "spacingBox" Notice that this property is only used in TooltipDefault: "pane".
- Since:
- 12.2.0.0
-
-