Class KeyCycleOscillator
- java.lang.Object
-
- androidx.constraintlayout.core.motion.utils.KeyCycleOscillator
-
- Direct Known Subclasses:
KeyCycleOscillator.PathRotateSet
public abstract class KeyCycleOscillator extends java.lang.ObjectProvide the engine for executing cycles. KeyCycleOscillator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyCycleOscillator.PathRotateSet
-
Field Summary
Fields Modifier and Type Field Description intmVariesBy
-
Constructor Summary
Constructors Constructor Description KeyCycleOscillator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description floatget(float t)CurveFitgetCurveFit()floatgetSlope(float position)static KeyCycleOscillatormakeWidgetCycle(java.lang.String attribute)protected voidsetCustom(java.lang.Object custom)voidsetPoint(int framePosition, int shape, java.lang.String waveString, int variesBy, float period, float offset, float phase, float value)sets a oscillator wave pointvoidsetPoint(int framePosition, int shape, java.lang.String waveString, int variesBy, float period, float offset, float phase, float value, java.lang.Object custom)sets a oscillator wave pointvoidsetProperty(MotionWidget widget, float t)voidsetType(java.lang.String type)voidsetup(float pathLength)java.lang.StringtoString()booleanvariesByPath()
-
-
-
Method Detail
-
makeWidgetCycle
public static KeyCycleOscillator makeWidgetCycle(java.lang.String attribute)
-
variesByPath
public boolean variesByPath()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setType
public void setType(java.lang.String type)
-
get
public float get(float t)
-
getSlope
public float getSlope(float position)
-
getCurveFit
public CurveFit getCurveFit()
-
setCustom
protected void setCustom(java.lang.Object custom)
-
setPoint
public void setPoint(int framePosition, int shape, java.lang.String waveString, int variesBy, float period, float offset, float phase, float value, java.lang.Object custom)sets a oscillator wave point- Parameters:
framePosition- the positionvariesBy- only varies by path supported for nowperiod- the period of the waveoffset- the offset valuevalue- the addercustom- The ConstraintAttribute used to set the value
-
setPoint
public void setPoint(int framePosition, int shape, java.lang.String waveString, int variesBy, float period, float offset, float phase, float value)sets a oscillator wave point- Parameters:
framePosition- the positionvariesBy- only varies by path supported for nowperiod- the period of the waveoffset- the offset valuevalue- the adder
-
setup
public void setup(float pathLength)
-
setProperty
public void setProperty(MotionWidget widget, float t)
-
-