Class RMInterpolator.Bounce
- java.lang.Object
- 
- com.inductiveautomation.rm.graphics.RMInterpolator
- 
- com.inductiveautomation.rm.graphics.RMInterpolator.Bounce
 
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable
 - Enclosing class:
- RMInterpolator
 
 public static class RMInterpolator.Bounce extends RMInterpolator Parameterizable bounce interpolator class.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.rm.graphics.RMInterpolatorRMInterpolator.Bounce, RMInterpolator.Direction, RMInterpolator.Periodic
 
- 
 - 
Field SummaryFields Modifier and Type Field Description double_elasticityint_numBounces- 
Fields inherited from class com.inductiveautomation.rm.graphics.RMInterpolatorBOUNCE, EASE_BOTH, EASE_BOTH_CUBIC, EASE_IN, EASE_IN_CUBIC, EASE_OUT, EASE_OUT_CUBIC, LINEAR, ONE_SHOT, RANDOM
 
- 
 - 
Constructor SummaryConstructors Constructor Description Bounce(int nBounces, double elasticity)Create a new Bounce interpolator.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Returns the name of this interpolator.doublegetRatio(double aRatio)Returns a new ratio given normal ratio.voidsetBounceParameters(int numBounces, double elasticity)Sets the interpolator parameters numBounces is the number of bounces taken before stopping at the destination.- 
Methods inherited from class com.inductiveautomation.rm.graphics.RMInterpolatorclone, getDirection, getInterpolator, getInterpolator, getInterpolatorCount, getNewInterpolator, getValue, getValue, interpolate, interpolateBoth, interpolateOut, isShared, toString
 
- 
 
- 
- 
- 
Method Detail- 
setBounceParameterspublic void setBounceParameters(int numBounces, double elasticity)Sets the interpolator parameters numBounces is the number of bounces taken before stopping at the destination. elasticity is a percentage which represents how much energy is lost on each bounce. 0 means the bounce is inelastic and won't bounce at all 1 means the bounce is perfectly elastic, so each bounce will go back to the starting point
 - 
getRatiopublic double getRatio(double aRatio) Description copied from class:RMInterpolatorReturns a new ratio given normal ratio.- Overrides:
- getRatioin class- RMInterpolator
 
 - 
getNamepublic java.lang.String getName() Description copied from class:RMInterpolatorReturns the name of this interpolator.- Overrides:
- getNamein class- RMInterpolator
 
 
- 
 
-