KeyCycle
public class KeyCycle extends Key
| java.lang.Object | ||
| ↳ | androidx.constraintlayout.motion.widget.Key | |
| ↳ | androidx.constraintlayout.motion.widget.KeyCycle |
Provide the passive data structure to get KeyPosition information form XML
Summary
Constants |
|
|---|---|
static final int |
KEY_TYPE = 4 |
static final int |
SHAPE_BOUNCE = 6 |
static final int |
SHAPE_COS_WAVE = 5 |
static final int |
|
static final int |
SHAPE_SAW_WAVE = 3 |
static final int |
SHAPE_SIN_WAVE = 0 |
static final int |
|
static final int |
|
static final String |
WAVE_OFFSET = "waveOffset" |
static final String |
WAVE_PERIOD = "wavePeriod" |
static final String |
WAVE_PHASE = "wavePhase" |
static final String |
WAVE_SHAPE = "waveShape" |
Public constructors |
|---|
KeyCycle() |
Public methods |
|
|---|---|
void |
addCycleValues(HashMap<String, ViewOscillator> oscSet)Add this key cycle to the keyCycle engines |
void |
addValues(HashMap<String, ViewSpline> splines)Defines method to add a a view to splines derived form this key frame. |
Key |
clone()Clone this KeyAttributes |
Key |
Copy the key |
void |
getAttributeNames(HashSet<String> attributes) |
float |
get the value for a given attribute of the keyCycel |
void |
load(Context context, AttributeSet attrs)Load the KeyCycle from xml attributes |
void |
Set the value associated with this tag |
Inherited Constants |
||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Inherited methods |
||||||||
|---|---|---|---|---|---|---|---|---|
|
Constants
Public constructors
Public methods
addCycleValues
public void addCycleValues(HashMap<String, ViewOscillator> oscSet)
Add this key cycle to the keyCycle engines
| Parameters | |
|---|---|
HashMap<String, ViewOscillator> oscSet |
addValues
public void addValues(HashMap<String, ViewSpline> splines)
Defines method to add a a view to splines derived form this key frame. The values are written to the spline
| Parameters | |
|---|---|
HashMap<String, ViewSpline> splines |
splines to write values to |
getValue
public float getValue(String key)
get the value for a given attribute of the keyCycel
| Parameters | |
|---|---|
String key |
| Returns | |
|---|---|
float |
load
public void load(Context context, AttributeSet attrs)
Load the KeyCycle from xml attributes
| Parameters | |
|---|---|
Context context |
|
AttributeSet attrs |