Package org.zkoss.chart
Class YAxisTitle
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.AxisTitle
-
- org.zkoss.chart.YAxisTitle
-
- All Implemented Interfaces:
Serializable
,OptionDataListener
,org.zkoss.json.JSONAware
public class YAxisTitle extends AxisTitle
A axis title option for YAxisAll 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 YAxisTitle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Number
getMargin()
Returns the pixel distance between the axis labels and the title.Number
getRotation()
Returns the rotation of the text in degrees.String
getText()
Returns the actual text of the axis title.void
setRotation(Number rotation)
Sets the rotation of the text in degrees.void
setText(String text)
Sets the actual text of the axis title.-
Methods inherited from class org.zkoss.chart.AxisTitle
getAlign, getOffset, getPosition3d, getStyle, getTextAlign, getX, getY, isEnabled, isReserveSpace, isSkew3d, isUseHTML, setAlign, setEnabled, setMargin, setOffset, setPosition3d, setReserveSpace, setSkew3d, setStyle, setStyle, setTextAlign, setUseHTML, setX, setY
-
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
-
getMargin
public Number getMargin()
Returns the pixel distance between the axis labels and the title. Positive values are outside the axis line, negative are inside.Default: 40.
-
getRotation
public Number getRotation()
Returns the rotation of the text in degrees. 0 is horizontal, 270 is vertical reading from bottom to top.Default: 270.
- Overrides:
getRotation
in classAxisTitle
- Returns:
- rotation the rotation of the text in degrees
-
setRotation
public void setRotation(Number rotation)
Sets the rotation of the text in degrees. 0 is horizontal, 270 is vertical reading from bottom to top.- Overrides:
setRotation
in classAxisTitle
-
getText
public String getText()
Returns the actual text of the axis title. It can contain basic HTML text markup like <b>, <i> and spans with style.Default: "Values".
-
-