rita.support.behavior
Class RiInterpolater
java.lang.Object
rita.support.behavior.Interpolater
rita.support.behavior.RiInterpolater
public class RiInterpolater
- extends Interpolater
|
Constructor Summary |
RiInterpolater(float startValue,
float targetValue,
int startOffset,
int duration)
|
| Methods inherited from class rita.support.behavior.Interpolater |
easeInCirc, easeInCubic, easeInExpo, easeInOutCirc, easeInOutCubic, easeInOutExpo, easeInOutQuad, easeInOutQuart, easeInOutSine, easeInQuad, easeInQuart, easeInSine, easeOutCirc, easeOutCubic, easeOutExpo, easeOutQuad, easeOutQuart, easeOutSine, linear |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
completed
public boolean completed
running
public boolean running
RiInterpolater
public RiInterpolater(float startValue,
float targetValue,
int startOffset,
int duration)
reset
public void reset(float startVal,
float targetVal,
int startOffset,
int duration)
reset
public void reset(float[] startValues,
float[] targetValues,
int startOffset,
int duration)
- Specified by:
reset in class Interpolater
setStart
public void setStart(float[] startValue)
- Specified by:
setStart in class Interpolater
setStart
public void setStart(float start)
getValues
public float[] getValues()
- Specified by:
getValues in class Interpolater
update
public boolean update()
- returns true if running, else false
- Specified by:
update in class Interpolater
isCompleted
public boolean isCompleted()
- Specified by:
isCompleted in class Interpolater
getValue
public float getValue()
getStartValue
public float getStartValue()
getTargetValue
public float getTargetValue()
getTarget
public float[] getTarget()
- Specified by:
getTarget in class Interpolater
stop
public void stop()
- Specified by:
stop in class Interpolater
finish
public void finish()
- Specified by:
finish in class Interpolater
setMotionType
public void setMotionType(int motionType)
- Specified by:
setMotionType in class Interpolater
getMotionType
public int getMotionType()
main
public static void main(java.lang.String[] args)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
isRunning
public boolean isRunning()
- Specified by:
isRunning in class Interpolater