CustomVariable
class CustomVariable
Defines non standard Attributes
Summary
Public constructors |
|---|
CustomVariable(name: String!, attributeType: Int) |
CustomVariable(source: CustomVariable!, value: Any!) |
CustomVariable(name: String!, attributeType: Int, value: Any!) |
CustomVariable(name: String!, type: Int, value: Boolean) |
CustomVariable(name: String!, type: Int, value: Float) |
CustomVariable(name: String!, type: Int, value: Int) |
CustomVariable(name: String!, type: Int, value: String!) |
Public functions |
|
|---|---|
Unit |
applyToWidget(view: MotionWidget!) |
java-static String! |
colorString(v: Int) |
CustomVariable! |
copy() |
Boolean |
diff(customAttribute: CustomVariable!)test if the two attributes are different |
Boolean |
|
Int |
|
Float |
|
Int |
|
Int |
getInterpolatedColor(value: FloatArray!) |
String! |
getName() |
String! |
|
Int |
getType() |
Float |
Transforms value to a float for the purpose of interpolation |
Unit |
getValuesToInterpolate(ret: FloatArray!) |
java-static Int |
|
Boolean |
Continuous types are interpolated they are fired only at |
Int |
The number of interpolation values that need to be interpolated Typically 1 but 3 for colors. |
java-static Int |
rgbaTocColor(r: Float, g: Float, b: Float, a: Float) |
Unit |
setBooleanValue(value: Boolean) |
Unit |
setFloatValue(value: Float) |
Unit |
setIntValue(value: Int) |
Unit |
setInterpolatedValue(view: MotionWidget!, value: FloatArray!) |
Unit |
setStringValue(value: String!) |
Unit |
|
Unit |
setValue(value: FloatArray!) |
String! |
toString() |
Public constructors
Public functions
diff
fun diff(customAttribute: CustomVariable!): Boolean
test if the two attributes are different
getValueToInterpolate
fun getValueToInterpolate(): Float
Transforms value to a float for the purpose of interpolation
| Returns | |
|---|---|
Float |
interpolation value |
isContinuous
fun isContinuous(): Boolean
Continuous types are interpolated they are fired only at
numberOfInterpolatedValues
fun numberOfInterpolatedValues(): Int
The number of interpolation values that need to be interpolated Typically 1 but 3 for colors.
| Returns | |
|---|---|
Int |
Typically 1 but 3 for colors. |
rgbaTocColor
java-static fun rgbaTocColor(r: Float, g: Float, b: Float, a: Float): Int
setInterpolatedValue
fun setInterpolatedValue(view: MotionWidget!, value: FloatArray!): Unit