Package org.zkoss.chart
Class States
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.States
-
- All Implemented Interfaces:
Serializable,OptionDataListener,org.zkoss.json.JSONAware
public class States extends Optionable
A wrapper object for all the series options in specific states.- Author:
- RaymondChao
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description States()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StategetHover()Returns the hover state.StategetInactive()Returns the opposite state of a hover for series.StategetNormal()Returns the normal state of a series, or for point items in column, pie and similar series.StategetSelect()Returns the appearance of the point marker when selected.voidsetHover(State hover)Sets the hover state.voidsetInactive(State inactive)Sets the opposite state of a hover for series.voidsetNormal(State normal)Sets the normal state of a series, or for point items in column, pie and similar series.voidsetSelect(State select)Sets the appearance of the point marker when selected.-
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
-
getHover
public State getHover()
Returns the hover state. If null, it will create a new one.
-
setHover
public void setHover(State hover)
Sets the hover state.
-
getInactive
public State getInactive()
Returns the opposite state of a hover for series. If null, it will create a new one.- Since:
- 7.2.1.0
-
setInactive
public void setInactive(State inactive)
Sets the opposite state of a hover for series.- Since:
- 7.2.1.0
-
getNormal
public State getNormal()
Returns the normal state of a series, or for point items in column, pie and similar series. If null, it will create a new one. Currently only used for setting animation when returning to normal state from hover.- Since:
- 7.2.1.0
-
setNormal
public void setNormal(State normal)
Sets the normal state of a series, or for point items in column, pie and similar series. Currently only used for setting animation when returning to normal state from hover.- Since:
- 7.2.1.0
-
getSelect
public State getSelect()
Returns the appearance of the point marker when selected. In order to allow a point to be selected, setSeriesPlotOptions.setAllowPointSelect(boolean)to true.
-
setSelect
public void setSelect(State select)
Sets the appearance of the point marker when selected. In order to allow a point to be selected, setSeriesPlotOptions.setAllowPointSelect(boolean)to true.
-
-