Package org.zkoss.chart.plotOptions
Class BarDataLabels
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.plotOptions.DataLabels
-
- org.zkoss.chart.plotOptions.BarDataLabels
-
- All Implemented Interfaces:
Serializable
,OptionDataListener
,org.zkoss.json.JSONAware
public class BarDataLabels extends DataLabels
An option of data labels used for Bar plotAll 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
-
-
Constructor Summary
Constructors Constructor Description BarDataLabels()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAlign()
Returns the alignment of the data label compared to the point.Number
getX()
Returns the x position offset of the label relative to the point.void
setAlign(String align)
Sets the alignment of the data label compared to the point.void
setX(Number x)
Sets the x position offset of the label relative to the point.-
Methods inherited from class org.zkoss.chart.plotOptions.DataLabels
getAllowOverlap, getBackgroundColor, getBorderColor, getBorderRadius, getBorderWidth, getColor, getConnectorColor, getConnectorShape, getConnectorWidth, getDefer, getDistance, getFilter, getFormat, getFormatter, getLinkFormat, getLinkTextPath, getNodeFormat, getNodeFormatter, getNullFormat, getNullFormatter, getOverflow, getPadding, getPointFormat, getRotation, getRotationMode, getShadow, getShape, getStyle, getTextPath, getVerticalAlign, getY, getZIndex, isAlternate, isCrop, isEnabled, isInside, isShadow, isSoftConnector, isUseHTML, setAllowOverlap, setAlternate, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderColor, setBorderColor, setBorderRadius, setBorderRadius, setBorderWidth, setColor, setColor, setColor, setColor, setConnectorColor, setConnectorShape, setConnectorWidth, setCrop, setDefer, setDistance, setDistance, setEnabled, setFilter, setFormat, setFormatter, setInside, setLinkFormat, setLinkTextPath, setNodeFormat, setNodeFormatter, setNullFormat, setNullFormatter, setOverflow, setPadding, setPointFormat, setRotation, setRotation, setRotationMode, setShadow, setShadow, setShape, setSoftConnector, setStyle, setStyle, setTextPath, setUseHTML, setVerticalAlign, setY, setZIndex
-
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
-
getAlign
public String getAlign()
Returns the alignment of the data label compared to the point. Can be one of "left", "center" or "right".Defaults to
"left"
.- Overrides:
getAlign
in classDataLabels
-
setAlign
public void setAlign(String align)
Sets the alignment of the data label compared to the point. Can be one of "left", "center" or "right". Defaults to"center"
. 'align the alignment of the data label compared to the point. Can be one of "left", "center" or "right".Defaults to
"left"
.- Overrides:
setAlign
in classDataLabels
-
getX
public Number getX()
Returns the x position offset of the label relative to the point.Default: 5
- Overrides:
getX
in classDataLabels
-
setX
public void setX(Number x)
Sets the x position offset of the label relative to the point.Default: 5
- Overrides:
setX
in classDataLabels
-
-