public class MotionKeyAttributes extends MotionKey
TypedValues.AttributesType, TypedValues.Custom, TypedValues.CycleType, TypedValues.MotionScene, TypedValues.MotionType, TypedValues.OnSwipe, TypedValues.PositionType, TypedValues.TransitionType, TypedValues.TriggerType| Modifier and Type | Field and Description |
|---|---|
static int |
KEY_TYPE |
ALPHA, CUSTOM, ELEVATION, mCustom, mFramePosition, mType, ROTATION, ROTATION_X, SCALE_X, SCALE_Y, TRANSITION_PATH_ROTATE, TRANSLATION_X, TRANSLATION_Y, UNSET, VISIBILITYBOOLEAN_MASK, FLOAT_MASK, INT_MASK, S_CUSTOM, STRING_MASK, TYPE_FRAME_POSITION, TYPE_TARGET| Constructor and Description |
|---|
MotionKeyAttributes() |
| Modifier and Type | Method and Description |
|---|---|
void |
addValues(java.util.HashMap<java.lang.String,SplineSet> splines)
Defines method to add a a view to splines derived form this key frame.
|
MotionKey |
clone() |
void |
getAttributeNames(java.util.HashSet<java.lang.String> attributes) |
int |
getCurveFit() |
int |
getId(java.lang.String name) |
void |
printAttributes() |
void |
setInterpolation(java.util.HashMap<java.lang.String,java.lang.Integer> interpolation)
Key frame can specify the type of interpolation it wants on various attributes
For each string it set it to -1, CurveFit.LINEAR or CurveFit.SPLINE
|
boolean |
setValue(int type,
float value)
Used to set float values
|
boolean |
setValue(int type,
int value)
Used to set integer values
|
boolean |
setValue(int type,
java.lang.String value)
Used to set String values
|
copy, getFramePosition, setCustomAttribute, setCustomAttribute, setCustomAttribute, setCustomAttribute, setFramePosition, setValue, setViewIdpublic static final int KEY_TYPE
public void getAttributeNames(java.util.HashSet<java.lang.String> attributes)
getAttributeNames in class MotionKeypublic void addValues(java.util.HashMap<java.lang.String,SplineSet> splines)
MotionKeypublic boolean setValue(int type,
int value)
TypedValuessetValue in interface TypedValuessetValue in class MotionKeypublic boolean setValue(int type,
float value)
TypedValuessetValue in interface TypedValuessetValue in class MotionKeypublic void setInterpolation(java.util.HashMap<java.lang.String,java.lang.Integer> interpolation)
MotionKeysetInterpolation in class MotionKeypublic boolean setValue(int type,
java.lang.String value)
TypedValuessetValue in interface TypedValuessetValue in class MotionKeypublic int getId(java.lang.String name)
public int getCurveFit()
public void printAttributes()