Class RMInterpolator.Periodic
java.lang.Object
com.inductiveautomation.rm.graphics.RMInterpolator
com.inductiveautomation.rm.graphics.RMInterpolator.Periodic
- All Implemented Interfaces:
- Cloneable
- Enclosing class:
- RMInterpolator
An Interpolator subclass that can be used for periodic (ie looping) motion.
 The different type values are (where n is the frequency):
 LOOP : start -> end, n times, BACKANDFORTH - start -> end -> start, n times
 SINUSOIDAL - start -> end -> start, n times along a smooth sin wave
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class com.inductiveautomation.rm.graphics.RMInterpolatorRMInterpolator.Bounce, RMInterpolator.Direction, RMInterpolator.Periodic
- 
Field SummaryFields 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
- 
Method SummaryModifier and TypeMethodDescriptionclone()Standard clone implementation.floatgetName()Override to return Periodic.floatgetPhase()getType()doublegetValue(double aRatio, double aStart, double anEnd) The main entry point.booleanisShared()Returns false, since periodic interpolators have parameters.voidsetFrequency(float aFrequency) voidsetParent(RMInterpolator aParent) voidsetPhase(float aPhase) voidMethods inherited from class com.inductiveautomation.rm.graphics.RMInterpolatorgetDirection, getInterpolator, getInterpolator, getInterpolatorCount, getNewInterpolator, getRatio, getValue, interpolate, interpolateBoth, interpolateOut, toString
- 
Constructor Details- 
Periodicpublic Periodic()
 
- 
- 
Method Details- 
getNameOverride to return Periodic.- Overrides:
- getNamein class- RMInterpolator
 
- 
getValuepublic double getValue(double aRatio, double aStart, double anEnd) The main entry point.- Overrides:
- getValuein class- RMInterpolator
 
- 
getFrequencypublic float getFrequency()
- 
setFrequencypublic void setFrequency(float aFrequency) 
- 
getParent
- 
setParent
- 
getPhasepublic float getPhase()
- 
setPhasepublic void setPhase(float aPhase) 
- 
getType
- 
setType
- 
cloneDescription copied from class:RMInterpolatorStandard clone implementation.- Overrides:
- clonein class- RMInterpolator
 
 
-