public class MotionKeyPosition 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 |
|---|---|
float |
mAltPercentX |
float |
mAltPercentY |
int |
mCurveFit |
int |
mDrawPath |
int |
mPathMotionArc |
float |
mPercentHeight |
float |
mPercentWidth |
float |
mPercentX |
float |
mPercentY |
int |
mPositionType |
java.lang.String |
mTransitionEasing |
protected static float |
SELECTION_SLOPE |
static int |
TYPE_CARTESIAN |
static int |
TYPE_PATH |
static int |
TYPE_SCREEN |
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 |
|---|
MotionKeyPosition() |
| 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() |
MotionKey |
copy(MotionKey src) |
void |
getAttributeNames(java.util.HashSet<java.lang.String> attributes) |
int |
getId(java.lang.String name) |
boolean |
intersects(int layoutWidth,
int layoutHeight,
FloatRect start,
FloatRect end,
float x,
float y) |
void |
positionAttributes(MotionWidget view,
FloatRect start,
FloatRect end,
float x,
float y,
java.lang.String[] attribute,
float[] value) |
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
|
getFramePosition, setCustomAttribute, setCustomAttribute, setCustomAttribute, setCustomAttribute, setFramePosition, setInterpolation, setValue, setViewIdprotected static final float SELECTION_SLOPE
public int mCurveFit
public java.lang.String mTransitionEasing
public int mPathMotionArc
public int mDrawPath
public float mPercentWidth
public float mPercentHeight
public float mPercentX
public float mPercentY
public float mAltPercentX
public float mAltPercentY
public static final int TYPE_SCREEN
public static final int TYPE_PATH
public static final int TYPE_CARTESIAN
public int mPositionType
public void positionAttributes(MotionWidget view, FloatRect start, FloatRect end, float x, float y, java.lang.String[] attribute, float[] value)
public boolean intersects(int layoutWidth,
int layoutHeight,
FloatRect start,
FloatRect end,
float x,
float y)
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 boolean setValue(int type,
java.lang.String value)
TypedValuessetValue in interface TypedValuessetValue in class MotionKeypublic int getId(java.lang.String name)