public abstract class MotionKey extends java.lang.Object implements TypedValues
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 java.lang.String |
ALPHA |
static java.lang.String |
CUSTOM |
static java.lang.String |
ELEVATION |
java.util.HashMap<java.lang.String,CustomVariable> |
mCustom |
int |
mFramePosition |
int |
mType |
static java.lang.String |
ROTATION |
static java.lang.String |
ROTATION_X |
static java.lang.String |
SCALE_X |
static java.lang.String |
SCALE_Y |
static java.lang.String |
TRANSITION_PATH_ROTATE |
static java.lang.String |
TRANSLATION_X |
static java.lang.String |
TRANSLATION_Y |
static int |
UNSET |
static java.lang.String |
VISIBILITY |
BOOLEAN_MASK, FLOAT_MASK, INT_MASK, S_CUSTOM, STRING_MASK, TYPE_FRAME_POSITION, TYPE_TARGET| Constructor and Description |
|---|
MotionKey() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addValues(java.util.HashMap<java.lang.String,SplineSet> splines)
Defines method to add a a view to splines derived form this key frame.
|
abstract MotionKey |
clone() |
MotionKey |
copy(MotionKey src) |
abstract void |
getAttributeNames(java.util.HashSet<java.lang.String> attributes) |
int |
getFramePosition()
Gets the current frame position
|
void |
setCustomAttribute(java.lang.String name,
int type,
boolean value) |
void |
setCustomAttribute(java.lang.String name,
int type,
float value) |
void |
setCustomAttribute(java.lang.String name,
int type,
int value) |
void |
setCustomAttribute(java.lang.String name,
int type,
java.lang.String value) |
void |
setFramePosition(int pos)
sets the frame position
|
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,
boolean value)
Used to set boolean values
|
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
|
MotionKey |
setViewId(int id) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdpublic static int UNSET
public int mFramePosition
public int mType
public java.util.HashMap<java.lang.String,CustomVariable> mCustom
public static final java.lang.String ALPHA
public static final java.lang.String ELEVATION
public static final java.lang.String ROTATION
public static final java.lang.String ROTATION_X
public static final java.lang.String TRANSITION_PATH_ROTATE
public static final java.lang.String SCALE_X
public static final java.lang.String SCALE_Y
public static final java.lang.String TRANSLATION_X
public static final java.lang.String TRANSLATION_Y
public static final java.lang.String CUSTOM
public static final java.lang.String VISIBILITY
public abstract void getAttributeNames(java.util.HashSet<java.lang.String> attributes)
public abstract void addValues(java.util.HashMap<java.lang.String,SplineSet> splines)
splines - splines to write values topublic void setInterpolation(java.util.HashMap<java.lang.String,java.lang.Integer> interpolation)
interpolation - public abstract MotionKey clone()
clone in class java.lang.Objectpublic MotionKey setViewId(int id)
public void setFramePosition(int pos)
pos - public int getFramePosition()
public boolean setValue(int type,
int value)
TypedValuessetValue in interface TypedValuespublic boolean setValue(int type,
float value)
TypedValuessetValue in interface TypedValuespublic boolean setValue(int type,
java.lang.String value)
TypedValuessetValue in interface TypedValuespublic boolean setValue(int type,
boolean value)
TypedValuessetValue in interface TypedValuespublic void setCustomAttribute(java.lang.String name,
int type,
float value)
public void setCustomAttribute(java.lang.String name,
int type,
int value)
public void setCustomAttribute(java.lang.String name,
int type,
boolean value)
public void setCustomAttribute(java.lang.String name,
int type,
java.lang.String value)