Class KeyCycleOscillator

  • Direct Known Subclasses:
    KeyCycleOscillator.PathRotateSet

    public abstract class KeyCycleOscillator
    extends java.lang.Object
    Provide the engine for executing cycles. KeyCycleOscillator
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int mVariesBy  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float get​(float t)  
      CurveFit getCurveFit()  
      float getSlope​(float position)  
      static KeyCycleOscillator makeWidgetCycle​(java.lang.String attribute)  
      protected void setCustom​(java.lang.Object custom)  
      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
      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
      void setProperty​(MotionWidget widget, float t)  
      void setType​(java.lang.String type)  
      void setup​(float pathLength)  
      java.lang.String toString()  
      boolean variesByPath()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • mVariesBy

        public int mVariesBy
    • Constructor Detail

      • KeyCycleOscillator

        public KeyCycleOscillator()
    • Method Detail

      • makeWidgetCycle

        public static KeyCycleOscillator makeWidgetCycle​(java.lang.String attribute)
      • variesByPath

        public boolean variesByPath()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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 position
        variesBy - only varies by path supported for now
        period - the period of the wave
        offset - the offset value
        value - the adder
        custom - 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 position
        variesBy - only varies by path supported for now
        period - the period of the wave
        offset - the offset value
        value - the adder
      • setup

        public void setup​(float pathLength)
      • setProperty

        public void setProperty​(MotionWidget widget,
                                float t)