public abstract class MoveAnimator extends Object implements Animator
Modifier | Constructor and Description |
---|---|
protected |
MoveAnimator(Point2D... points)
Constructs animator for a path defined by given set of points.
|
Modifier and Type | Method and Description |
---|---|
protected Point2D |
computePosition(double fraction)
Computes position that corresponds to given animation fraction.
|
double |
getTrajectoryLength()
Returns total length of the movement trajectory.
|
protected MoveAnimator(Point2D... points)
points
- the points.public double getTrajectoryLength()
protected Point2D computePosition(double fraction)
fraction
- the animation fraction.Copyright © 2017. All rights reserved.