rita.support.behavior
Class RiInterpolater

java.lang.Object
  extended by rita.support.behavior.Interpolater
      extended by rita.support.behavior.RiInterpolater

public class RiInterpolater
extends Interpolater


Field Summary
 boolean completed
           
 boolean running
           
 
Constructor Summary
RiInterpolater(float startValue, float targetValue, int startOffset, int duration)
           
 
Method Summary
 void finish()
           
 int getMotionType()
           
 float getStartValue()
           
 float[] getTarget()
           
 float getTargetValue()
           
 float getValue()
           
 float[] getValues()
           
 boolean isCompleted()
           
 boolean isRunning()
           
static void main(java.lang.String[] args)
           
 void reset(float[] startValues, float[] targetValues, int startOffset, int duration)
           
 void reset(float startVal, float targetVal, int startOffset, int duration)
           
 void setMotionType(int motionType)
           
 void setStart(float start)
           
 void setStart(float[] startValue)
           
 void stop()
           
 boolean update()
          returns true if running, else false
 
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
 

Field Detail

completed

public boolean completed

running

public boolean running
Constructor Detail

RiInterpolater

public RiInterpolater(float startValue,
                      float targetValue,
                      int startOffset,
                      int duration)
Method Detail

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