public abstract class KeyCycleOscillator

Known direct subclasses
KeyCycleOscillator.PathRotateSet
ViewOscillator

Provide the engine for executing cycles.


Provide the engine for executing cycles. KeyCycleOscillator

Summary

Nested types

Public fields

int

Public constructors

Public methods

float
get(float t)
CurveFit
float
getSlope(float position)
static KeyCycleOscillator
void
setPoint(
    int framePosition,
    int shape,
    String waveString,
    int variesBy,
    float period,
    float offset,
    float phase,
    float value
)

sets a oscillator wave point

void
setPoint(
    int framePosition,
    int shape,
    String waveString,
    int variesBy,
    float period,
    float offset,
    float phase,
    float value,
    Object custom
)

sets a oscillator wave point

void
setProperty(MotionWidget widget, float t)
void
void
setup(float pathLength)
String
boolean

Protected methods

void
setCustom(Object custom)

Public fields

mVariesBy

Added in 1.1.0-alpha13
public int mVariesBy

Public constructors

KeyCycleOscillator

Added in 1.1.0-alpha13
public KeyCycleOscillator()

Public methods

get

Added in 1.1.0-alpha13
public float get(float t)

getCurveFit

Added in 1.1.0-alpha13
public CurveFit getCurveFit()

getSlope

Added in 1.1.0-alpha13
public float getSlope(float position)

makeWidgetCycle

Added in 1.1.0-alpha13
public static KeyCycleOscillator makeWidgetCycle(String attribute)

setPoint

Added in 1.1.0-alpha13
public void setPoint(
    int framePosition,
    int shape,
    String waveString,
    int variesBy,
    float period,
    float offset,
    float phase,
    float value
)

sets a oscillator wave point

Parameters
int framePosition

the position

int variesBy

only varies by path supported for now

float period

the period of the wave

float offset

the offset value

float value

the adder

setPoint

Added in 1.1.0-alpha13
public void setPoint(
    int framePosition,
    int shape,
    String waveString,
    int variesBy,
    float period,
    float offset,
    float phase,
    float value,
    Object custom
)

sets a oscillator wave point

Parameters
int framePosition

the position

int variesBy

only varies by path supported for now

float period

the period of the wave

float offset

the offset value

float value

the adder

Object custom

The ConstraintAttribute used to set the value

setProperty

Added in 1.1.0-alpha13
public void setProperty(MotionWidget widget, float t)

setType

Added in 1.1.0-alpha13
public void setType(String type)

setup

Added in 1.1.0-alpha13
public void setup(float pathLength)

toString

public String toString()

variesByPath

Added in 1.1.0-alpha13
public boolean variesByPath()

Protected methods

setCustom

Added in 1.1.0-alpha13
protected void setCustom(Object custom)