public class Animation extends Object
Modifier and Type | Method and Description |
---|---|
IsChart |
getChart()
Returns the chart instance
|
protected T |
getConfiguration()
Returns the configuration element.
|
int |
getDuration()
Returns the number of milliseconds an animation takes.
|
Easing |
getEasing()
Returns the animation easing.
|
boolean |
isAnimateRotate()
If true, the chart will animate in with a rotation animation.
|
boolean |
isAnimateScale()
If true, will animate scaling the chart from the center outwards.
|
void |
merge(NativeObjectContainer source,
String property)
Merge a native object into this one with a specific property name.
This is used by plugins implementation (native java script ones) when they are not using the standard way to add plugin configuration into options of chart. |
void |
onAdd(AddHandlerEvent event)
Invoked when a new event handler is added.
|
void |
onRemove(RemoveHandlerEvent event)
Invoked when a chart event handler is removed.
|
static void |
register(IsChart chart,
org.pepstock.charba.client.configuration.IsEventProvider provider)
Adds the event provider implementation as handlers of chart.
|
void |
setAnimateRotate(boolean animateRotate)
If true, the chart will animate in with a rotation animation.
|
void |
setAnimateScale(boolean animateScale)
If true, will animate scaling the chart from the center outwards.
|
protected void |
setConfiguration(T configuration) |
void |
setDuration(int milliseconds)
Sets the number of milliseconds an animation takes.
|
void |
setEasing(Easing easing)
Sets the animation easing.
|
String |
toJSON()
Returns the JSON representation of the object.
|
public void setEasing(Easing easing)
easing
- animation easing.public Easing getEasing()
public void setDuration(int milliseconds)
milliseconds
- the number of milliseconds an animation takes.public int getDuration()
public void setAnimateRotate(boolean animateRotate)
animateRotate
- If true, the chart will animate in with a rotation animation.public boolean isAnimateRotate()
public void setAnimateScale(boolean animateScale)
animateScale
- If true, will animate scaling the chart from the center outwards.public boolean isAnimateScale()
public final void onAdd(AddHandlerEvent event)
AddHandlerEventHandler
event
- event to be consumedpublic final void onRemove(RemoveHandlerEvent event)
RemoveHandlerEventHandler
event
- event to be consumedpublic static void register(IsChart chart, org.pepstock.charba.client.configuration.IsEventProvider provider)
chart
- chart instanceprovider
- event provider implmentationprotected final void setConfiguration(T configuration)
configuration
- the configuration to setprotected final T getConfiguration()
public final void merge(NativeObjectContainer source, String property)
source
- native object container to addproperty
- property namepublic final String toJSON()
public final IsChart getChart()