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
java-static String!
CustomVariable!
Boolean
diff(customAttribute: CustomVariable!)

test if the two attributes are different

Boolean
Int
Float
Int
Int
String!
String!
Int
Float

Transforms value to a float for the purpose of interpolation

Unit
java-static Int
hsvToRgb(hue: Float, saturation: Float, value: Float)
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
Unit
Unit
setIntValue(value: Int)
Unit
Unit
Unit
setValue(value: Any!)
Unit
String!

Public constructors

CustomVariable

Added in 1.1.0
CustomVariable(c: CustomVariable!)

CustomVariable

Added in 1.1.0
CustomVariable(name: String!, attributeType: Int)

CustomVariable

Added in 1.1.0
CustomVariable(source: CustomVariable!, value: Any!)

CustomVariable

Added in 1.1.0
CustomVariable(name: String!, attributeType: Int, value: Any!)

CustomVariable

Added in 1.1.0
CustomVariable(name: String!, type: Int, value: Boolean)

CustomVariable

Added in 1.1.0
CustomVariable(name: String!, type: Int, value: Float)

CustomVariable

Added in 1.1.0
CustomVariable(name: String!, type: Int, value: Int)

CustomVariable

Added in 1.1.0
CustomVariable(name: String!, type: Int, value: String!)

Public functions

applyToWidget

Added in 1.1.0
fun applyToWidget(view: MotionWidget!): Unit

colorString

Added in 1.1.0
java-static fun colorString(v: Int): String!

copy

Added in 1.1.0
fun copy(): CustomVariable!

diff

Added in 1.1.0
fun diff(customAttribute: CustomVariable!): Boolean

test if the two attributes are different

getBooleanValue

Added in 1.1.0
fun getBooleanValue(): Boolean

getColorValue

Added in 1.1.0
fun getColorValue(): Int

getFloatValue

Added in 1.1.0
fun getFloatValue(): Float

getIntegerValue

Added in 1.1.0
fun getIntegerValue(): Int

getInterpolatedColor

Added in 1.1.0
fun getInterpolatedColor(value: FloatArray!): Int

getName

Added in 1.1.0
fun getName(): String!

getStringValue

Added in 1.1.0
fun getStringValue(): String!

getType

Added in 1.1.0
fun getType(): Int

getValueToInterpolate

Added in 1.1.0
fun getValueToInterpolate(): Float

Transforms value to a float for the purpose of interpolation

Returns
Float

interpolation value

getValuesToInterpolate

Added in 1.1.0
fun getValuesToInterpolate(ret: FloatArray!): Unit

hsvToRgb

Added in 1.1.0
java-static fun hsvToRgb(hue: Float, saturation: Float, value: Float): Int

isContinuous

Added in 1.1.0
fun isContinuous(): Boolean

Continuous types are interpolated they are fired only at

numberOfInterpolatedValues

Added in 1.1.0
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

Added in 1.1.0
java-static fun rgbaTocColor(r: Float, g: Float, b: Float, a: Float): Int

setBooleanValue

Added in 1.1.0
fun setBooleanValue(value: Boolean): Unit

setFloatValue

Added in 1.1.0
fun setFloatValue(value: Float): Unit

setIntValue

Added in 1.1.0
fun setIntValue(value: Int): Unit

setInterpolatedValue

Added in 1.1.0
fun setInterpolatedValue(view: MotionWidget!, value: FloatArray!): Unit

setStringValue

Added in 1.1.0
fun setStringValue(value: String!): Unit

setValue

Added in 1.1.0
fun setValue(value: Any!): Unit

setValue

Added in 1.1.0
fun setValue(value: FloatArray!): Unit

toString

fun toString(): String!