public final class AnimationItem extends NativeObjectContainer
onProgress
and onComplete
events are useful for synchronizing an external draw to the chart animation.Constructor and Description |
---|
AnimationItem(ConfigurationEnvelop<NativeObject> envelop)
Creates the item using an envelop with native java script object which contains all properties.
It is called from configuration package. |
Modifier and Type | Method and Description |
---|---|
IsChart |
getChart()
Returns the CHARBA chart instance.
|
double |
getCurrentStep()
Returns the current animation frame number.
|
double |
getNumSteps()
Returns the total number of animation frames.
|
boolean |
isInitial()
Returns
true for the initial animation of the chart. |
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public AnimationItem(ConfigurationEnvelop<NativeObject> envelop)
configuration
package.envelop
- envelop with native java script object which contains all properties.public IsChart getChart()
public boolean isInitial()
true
for the initial animation of the chart.true
for the initial animation of the chartpublic double getCurrentStep()
public double getNumSteps()