Key
public abstract class Key
KeyAttributes |
Defines container for a key frame of for storing KeyAttributes. |
KeyCycle |
Provide the passive data structure to get KeyPosition information form XML |
KeyPosition |
Provide the passive data structure to get KeyPosition information form XML |
KeyTimeCycle |
Defines container for a key frame of for storing KeyTimeCycles. |
KeyTrigger |
Defines container for a key frame of for storing KeyAttributes. |
Base class in an element in a KeyFrame
Summary
Constants |
|
|---|---|
static final String |
ALPHA = "alpha" |
static final String |
CURVEFIT = "curveFit" |
static final String |
CUSTOM = "CUSTOM" |
static final String |
ELEVATION = "elevation" |
static final String |
MOTIONPROGRESS = "motionProgress" |
static final String |
PIVOT_X = "transformPivotX" |
static final String |
PIVOT_Y = "transformPivotY" |
static final String |
PROGRESS = "progress" |
static final String |
ROTATION = "rotation" |
static final String |
ROTATION_X = "rotationX" |
static final String |
ROTATION_Y = "rotationY" |
static final String |
SCALE_X = "scaleX" |
static final String |
SCALE_Y = "scaleY" |
static final String |
TRANSITIONEASING = "transitionEasing" |
static final String |
TRANSITION_PATH_ROTATE = "transitionPathRotate" |
static final String |
TRANSLATION_X = "translationX" |
static final String |
TRANSLATION_Y = "translationY" |
static final String |
TRANSLATION_Z = "translationZ" |
static final String |
VISIBILITY = "visibility" |
static final String |
WAVE_OFFSET = "waveOffset" |
static final String |
WAVE_PERIOD = "wavePeriod" |
static final String |
WAVE_PHASE = "wavePhase" |
static final String |
WAVE_VARIES_BY = "waveVariesBy" |
Public fields |
|
|---|---|
static int |
Protected fields |
|
|---|---|
int |
Public constructors |
|---|
Key() |
Public methods |
|
|---|---|
abstract void |
addValues(HashMap<String, ViewSpline> splines)Defines method to add a a view to splines derived form this key frame. |
abstract Key |
clone()Return a copy of this |
Key |
Return a copy of this key |
int |
Gets the current frame position |
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 |
abstract void |
Set the value associated with this tag |
Key |
setViewId(int id)set the id of the view |
Constants
TRANSITION_PATH_ROTATE
public static final String TRANSITION_PATH_ROTATE = "transitionPathRotate"
Public constructors
Public methods
addValues
public abstract 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 |
copy
public Key copy(Key src)
Return a copy of this key
| Parameters | |
|---|---|
Key src |
| Returns | |
|---|---|
Key |
getFramePosition
public int getFramePosition()
Gets the current frame position
| Returns | |
|---|---|
int |
setFramePosition
public void setFramePosition(int pos)
sets the frame position
| Parameters | |
|---|---|
int pos |
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