public class MotionPath extends PathInterpolator
myXVals| Constructor and Description |
|---|
MotionPath()
Creates an empty MotionPath with the default Interpolator.
|
MotionPath(InterpolatorFactory factory)
Creates a MotionPath with an Interpolator from the given InterpolatorFactory.
|
| Modifier and Type | Method and Description |
|---|---|
MotionPath |
clone()
Returns a deep copy of the Channel.
|
boolean |
compilePath(long stepLength)
Generates and caches a CompiledPath for the complete MotionPath.
|
CompiledPath |
compilePath(long start,
long end,
long stepLength)
Creates a CompiledPath from the interpolated points.
|
boolean |
equals(Object obj) |
CompiledPath |
getCompiledPath(long stepLength)
Gets a CompiledPath of the full MotionPath.
|
String |
getName()
Returns the MotionPath's name.
|
Long |
getStartTime()
Returns the start time
|
Long |
getStopTime()
Returns the stop time
|
int |
hashCode() |
protected boolean |
interpolate()
Calls interpolate for PathInterpolator.
|
void |
setName(String name)
Sets the name of the MotionPath
|
void |
setStartTime(Long time)
Sets the start time
|
void |
setStopTime(Long time)
Sets the stop time
|
addPoint, addPoints, addPoints, clear, getControlPoints, getInterpolatedPoints, getInterpolatorFactory, getInterpolatorVersion, insertPoint, interpolationChanged, moveControlPoint, overlaps, removePoint, removePoint, setInterpolatorFactory, setPoint, touchesControlPointspublic MotionPath()
public MotionPath(InterpolatorFactory factory)
factory - the InterpolatorFactory from which a Motion Path is to be createdpublic String getName()
public void setName(String name)
name - the name to setpublic void setStartTime(Long time)
time - start timepublic Long getStartTime()
public void setStopTime(Long time)
time - stop timepublic Long getStopTime()
public CompiledPath getCompiledPath(long stepLength)
stepLength - milliseconds between positionspublic boolean compilePath(long stepLength)
stepLength - milliseconds between positionspublic CompiledPath compilePath(long start, long end, long stepLength)
start - path start timeend - path end timestepLength - milliseconds between positionspublic MotionPath clone()
protected boolean interpolate()
interpolate in class PathInterpolatorpublic boolean equals(Object obj)
equals in class PathInterpolatorpublic int hashCode()
hashCode in class PathInterpolatorCopyright © 2011-2016. All Rights Reserved.