com.sencha.gxt.chart.client.draw
Class DrawFx

java.lang.Object
  extended by com.sencha.gxt.chart.client.draw.DrawFx

public class DrawFx
extends Object

Class that provides utility functions for creating sprite animations.


Constructor Summary
DrawFx()
           
 
Method Summary
static Animator createCommandsAnimator(PathSprite origin, List<PathCommand> commands)
          Returns an Animator that will animate the given PathSprite to the given list of PathCommands.
static Animator createDegreesAnimator(Sprite sprite, double degrees)
          Returns an Animator that will animate the given Sprite to the given degrees of rotation.
static Animator createOpacityAnimator(Sprite sprite, double opacity)
          Returns an Animator that will animate the given Sprite to the given opacity.
static Animator createRectangleAnimator(RectangleSprite sprite, PreciseRectangle rectangle)
          Returns an Animator that will animate the given RectangleSprite to the given PreciseRectangle attributes.
static Animator createRotationAnimator(Sprite sprite, double x, double y, double degrees)
          Returns an Animator that will animate the given Sprite to the given rotation.
static Animator createScalingAnimator(Sprite sprite, Scaling scaling)
          Returns an Animator that will animate the given Sprite to the given Scaling.
static Animator createStrokeWidthAnimator(Sprite sprite, double strokeWidth)
          Returns an Animator that will animate the given Sprite to the given stroke width.
static Animator createTranslationAnimator(Sprite sprite, double x, double y)
          Returns an Animator that will animate the given Sprite to the given Translation coordinates.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawFx

public DrawFx()
Method Detail

createCommandsAnimator

public static Animator createCommandsAnimator(PathSprite origin,
                                              List<PathCommand> commands)
Returns an Animator that will animate the given PathSprite to the given list of PathCommands.

Parameters:
origin - the path sprite
commands - the target path commands
Returns:
the animator

createDegreesAnimator

public static Animator createDegreesAnimator(Sprite sprite,
                                             double degrees)
Returns an Animator that will animate the given Sprite to the given degrees of rotation.

Parameters:
sprite - the sprite to be animated
degrees - the target degrees of rotation
Returns:
the animator

createOpacityAnimator

public static Animator createOpacityAnimator(Sprite sprite,
                                             double opacity)
Returns an Animator that will animate the given Sprite to the given opacity.

Parameters:
sprite - the sprite to be animated
opacity - the target opacity
Returns:
the animator

createRectangleAnimator

public static Animator createRectangleAnimator(RectangleSprite sprite,
                                               PreciseRectangle rectangle)
Returns an Animator that will animate the given RectangleSprite to the given PreciseRectangle attributes.

Parameters:
sprite - the rectangle sprite
rectangle - the target rectangle attributes
Returns:
the animator used to run the animation

createRotationAnimator

public static Animator createRotationAnimator(Sprite sprite,
                                              double x,
                                              double y,
                                              double degrees)
Returns an Animator that will animate the given Sprite to the given rotation.

Parameters:
sprite - the sprite to be animated
x - the target rotation on the x-axis
y - the target rotation on the y-axis
degrees - the degrees of rotation
Returns:
the animator

createScalingAnimator

public static Animator createScalingAnimator(Sprite sprite,
                                             Scaling scaling)
Returns an Animator that will animate the given Sprite to the given Scaling.

Parameters:
sprite - the sprite to be animated
scaling - the target scaling
Returns:
the animator

createStrokeWidthAnimator

public static Animator createStrokeWidthAnimator(Sprite sprite,
                                                 double strokeWidth)
Returns an Animator that will animate the given Sprite to the given stroke width.

Parameters:
sprite - the sprite to be animated
strokeWidth - the target stroke width
Returns:
the animator

createTranslationAnimator

public static Animator createTranslationAnimator(Sprite sprite,
                                                 double x,
                                                 double y)
Returns an Animator that will animate the given Sprite to the given Translation coordinates.

Parameters:
sprite - the sprite to be animated
x - the target translation x-coordinate
y - the target translation y-coordinate
Returns:
the animator


Copyright © 2011. All Rights Reserved.