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