Package org.zkoss.chart
Class Animation
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.Animation
-
- All Implemented Interfaces:
Serializable
,OptionDataListener
,org.zkoss.json.JSONAware
public class Animation extends Optionable
An animation class to set the overall animation for all chart updating.All the options in this class support
DynamicalAttribute
.- Author:
- jumperchen
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Animation
NONE
No animation at all-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description Animation()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Number
getDuration()
Returns the duration of the animation in milliseconds.String
getEasing()
Returns the easing animation function.String
getEasing(String easing)
Deprecated.UsegetEasing()
insteadvoid
setDuration(Number duration)
Sets the duration of the animation in milliseconds.void
setEasing(String easing)
Sets the easing animation function.String
toJSONString()
Encodes this object to a JSON string.-
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, toString
-
-
-
-
Field Detail
-
NONE
public static Animation NONE
No animation at all
-
-
Method Detail
-
setDuration
public void setDuration(Number duration)
Sets the duration of the animation in milliseconds.- Parameters:
duration
-
-
getDuration
public Number getDuration()
Returns the duration of the animation in milliseconds.Default: 400.
-
setEasing
public void setEasing(String easing)
Sets the easing animation function.Default: swing
- Parameters:
easing
-
-
getEasing
public String getEasing()
Returns the easing animation function.Default: swing
-
getEasing
@Deprecated public String getEasing(String easing)
Deprecated.UsegetEasing()
insteadReturns the easing animation function.Default: swing
-
toJSONString
public String toJSONString()
Description copied from class:Optionable
Encodes this object to a JSON string. It is the same asOptionable.toString()
.- Specified by:
toJSONString
in interfaceorg.zkoss.json.JSONAware
- Overrides:
toJSONString
in classOptionable
-
-