public class DrawFx extends Object
Constructor and Description |
---|
DrawFx() |
Modifier and Type | Method and Description |
---|---|
static Animator |
createCommandsAnimator(PathSprite origin,
List<PathCommand> commands)
|
static Animator |
createDegreesAnimator(Sprite sprite,
double degrees)
|
static Animator |
createOpacityAnimator(Sprite sprite,
double 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)
|
static Animator |
createScalingAnimator(Sprite sprite,
Scaling scaling)
|
static Animator |
createStrokeWidthAnimator(Sprite sprite,
double strokeWidth)
|
static Animator |
createTranslationAnimator(Sprite sprite,
double x,
double y)
|
public static Animator createCommandsAnimator(PathSprite origin, List<PathCommand> commands)
origin
- the path spritecommands
- the target path commandspublic static Animator createDegreesAnimator(Sprite sprite, double degrees)
sprite
- the sprite to be animateddegrees
- the target degrees of rotationpublic static Animator createOpacityAnimator(Sprite sprite, double opacity)
sprite
- the sprite to be animatedopacity
- the target opacitypublic static Animator createRectangleAnimator(RectangleSprite sprite, PreciseRectangle rectangle)
Animator
that will animate the given
RectangleSprite
to the given PreciseRectangle
attributes.sprite
- the rectangle spriterectangle
- the target rectangle attributespublic static Animator createRotationAnimator(Sprite sprite, double x, double y, double degrees)
sprite
- the sprite to be animatedx
- the target rotation on the x-axisy
- the target rotation on the y-axisdegrees
- the degrees of rotationpublic static Animator createScalingAnimator(Sprite sprite, Scaling scaling)
sprite
- the sprite to be animatedscaling
- the target scalingpublic static Animator createStrokeWidthAnimator(Sprite sprite, double strokeWidth)
sprite
- the sprite to be animatedstrokeWidth
- the target stroke widthCopyright © 2018. All rights reserved.