Class SeriesTransition
- All Implemented Interfaces:
Animation
- Direct Known Subclasses:
XYMultiSeriesTransition, XYSeriesTransition, XYValueSeriesTransition
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionSeriesTransition(ChartComponent chart) Deprecated.SeriesTransition(ChartComponent chart, int easing) Deprecated.SeriesTransition(ChartComponent chart, int easing, int duration) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleananimate()Deprecated.Allows the animation to reduce "repaint" calls when it returns false.voidDeprecated.Applies all pending changes to the chart model and renderer using the current animation settings.protected voidcleanup()Deprecated.Cleans up any settings in the transition.getChart()Deprecated.Gets the ChartComponent that is the subject of the transition.intDeprecated.Gets the duration of the transition.intDeprecated.Gets the type of easing used in the transition.protected voidDeprecated.Initializes the transition for another iteration.voidDeprecated.Draws the animation, within a component the standard paint method would be invoked since it bares the exact same signature.voidsetChart(ChartComponent chart) Deprecated.Sets the ChartComponent that is the subject of the transition.voidsetDuration(int duration) Deprecated.Sets the duration of the transition in milliseconds.voidsetEasing(int easing) Deprecated.Sets the type of easing used in the transition.protected abstract voidupdate(int progress) Deprecated.Updates the renderer and model at the specified progress position of the animation.voidDeprecated.Applies all pending changes to the chart model and renderer and repaints the chart.
-
Field Details
-
EASING_LINEAR
public static final int EASING_LINEARDeprecated.- See Also:
-
EASING_IN
public static final int EASING_INDeprecated.- See Also:
-
EASING_OUT
public static final int EASING_OUTDeprecated.- See Also:
-
EASING_IN_OUT
public static final int EASING_IN_OUTDeprecated.- See Also:
-
-
Constructor Details
-
SeriesTransition
Deprecated. -
SeriesTransition
Deprecated. -
SeriesTransition
Deprecated.
-
-
Method Details
-
initTransition
protected void initTransition()Deprecated.Initializes the transition for another iteration. This can be overridden by subclasses to provide their own initialization. This method will be called just prior to the transition taking place. IMPORTANT: Subclasses must make sure to call super.initTransition() so that the animation will be initialized properly. -
cleanup
protected void cleanup()Deprecated.Cleans up any settings in the transition. Called after a transition is complete. This is meant to be overridden by subclasses. -
update
protected abstract void update(int progress) Deprecated.Updates the renderer and model at the specified progress position of the animation. Meant to be overridden by subclasses.
Parameters
progress: The progress of the animation (between 0 and 100).
-
animate
public boolean animate()Deprecated.Description copied from interface:AnimationAllows the animation to reduce "repaint" calls when it returns false. It is called once for every frame. Frames are defined by the
com.codename1.ui.Displayclass.Returns
true if a repaint is desired or false if no repaint is necessary
-
paint
-
getChart
Deprecated.Gets the ChartComponent that is the subject of the transition.
Returns
the chart
-
setChart
Deprecated.Sets the ChartComponent that is the subject of the transition.
Parameters
chart: the chart to set
-
getDuration
public int getDuration()Deprecated.Gets the duration of the transition. (in milliseconds)
Returns
the duration
-
setDuration
public void setDuration(int duration) Deprecated.Sets the duration of the transition in milliseconds.
Parameters
duration: the duration to set
-
getEasing
public int getEasing()Deprecated.Gets the type of easing used in the transition. Should be one of EASING_LINEAR, EASING_IN, EASING_OUT, or EASING_IN_OUT.
Returns
the easing
-
setEasing
public void setEasing(int easing) Deprecated.Sets the type of easing used in the transition. Should be one of EASING_LINEAR, EASING_IN, EASING_OUT, or EASING_IN_OUT.
Parameters
easing: the easing to set
-
animateChart
public void animateChart()Deprecated.Applies all pending changes to the chart model and renderer using the current animation settings. -
updateChart
public void updateChart()Deprecated.Applies all pending changes to the chart model and renderer and repaints the chart. This is basically like calling animateChart() with a duration of 0.
-
com.codename1.ui.chartpackage instead.