MotionKey
public abstract class MotionKey implements TypedValues
Base class in an element in a KeyFrame
Summary
Constants |
|
|---|---|
static final String |
ALPHA = "alpha" |
static final String |
CUSTOM = "CUSTOM" |
static final String |
ELEVATION = "elevation" |
static final String |
ROTATION = "rotationZ" |
static final String |
ROTATION_X = "rotationX" |
static final String |
SCALE_X = "scaleX" |
static final String |
SCALE_Y = "scaleY" |
static final String |
TRANSITION_PATH_ROTATE = "transitionPathRotate" |
static final String |
TRANSLATION_X = "translationX" |
static final String |
TRANSLATION_Y = "translationY" |
static final String |
VISIBILITY = "visibility" |
Public fields |
|
|---|---|
static int |
|
HashMap<String, CustomVariable> |
|
int |
|
int |
Public constructors |
|---|
Public methods |
|
|---|---|
abstract void |
Defines method to add a a view to splines derived form this key frame. |
abstract MotionKey |
clone() |
MotionKey |
|
abstract void |
getAttributeNames(HashSet<String> attributes) |
int |
Gets the current frame position |
void |
setCustomAttribute(String name, int type, boolean value) |
void |
setCustomAttribute(String name, int type, float value) |
void |
setCustomAttribute(String name, int type, int value) |
void |
setCustomAttribute(String name, int type, String value) |
void |
setFramePosition(int pos)sets the frame position |
void |
setInterpolation(HashMap<String, 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 |
Used to set String values |
MotionKey |
setViewId(int id) |
Inherited Constants |
||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Constants
TRANSITION_PATH_ROTATE
public static final String TRANSITION_PATH_ROTATE = "transitionPathRotate"
Public fields
Public constructors
Public methods
addValues
public abstract void addValues(HashMap<String, SplineSet> splines)
Defines method to add a a view to splines derived form this key frame. The values are written to the spline
setCustomAttribute
public void setCustomAttribute(String name, int type, boolean value)
setCustomAttribute
public void setCustomAttribute(String name, int type, float value)
setCustomAttribute
public void setCustomAttribute(String name, int type, String value)
setInterpolation
public void setInterpolation(HashMap<String, 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
setValue
public boolean setValue(int type, boolean value)
Used to set boolean values
| Returns | |
|---|---|
boolean |
true if it accepted the value |
setValue
public boolean setValue(int type, float value)
Used to set float values
| Returns | |
|---|---|
boolean |
true if it accepted the value |
setValue
public boolean setValue(int type, int value)
Used to set integer values
| Returns | |
|---|---|
boolean |
true if it accepted the value |