public class CustomVariable
extends java.lang.Object
| Constructor and Description |
|---|
CustomVariable(CustomVariable c) |
CustomVariable(CustomVariable source,
java.lang.Object value) |
CustomVariable(java.lang.String name,
int attributeType) |
CustomVariable(java.lang.String name,
int type,
boolean value) |
CustomVariable(java.lang.String name,
int type,
float value) |
CustomVariable(java.lang.String name,
int type,
int value) |
CustomVariable(java.lang.String name,
int attributeType,
java.lang.Object value) |
CustomVariable(java.lang.String name,
int type,
java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyToWidget(MotionWidget view) |
static java.lang.String |
colorString(int v) |
CustomVariable |
copy() |
boolean |
diff(CustomVariable CustomAttribute)
test if the two attributes are different
|
boolean |
getBooleanValue() |
int |
getColorValue() |
float |
getFloatValue() |
int |
getIntegerValue() |
int |
getInterpolatedColor(float[] value) |
java.lang.String |
getName() |
java.lang.String |
getStringValue() |
int |
getType() |
void |
getValuesToInterpolate(float[] ret) |
float |
getValueToInterpolate()
Transforms value to a float for the purpose of interpolation
|
static int |
hsvToRgb(float hue,
float saturation,
float value) |
boolean |
isContinuous()
Continuous types are interpolated they are fired only at
|
int |
numberOfInterpolatedValues()
The number of interpolation values that need to be interpolated
Typically 1 but 3 for colors.
|
static int |
rgbaTocColor(float r,
float g,
float b,
float a) |
void |
setBooleanValue(boolean value) |
void |
setFloatValue(float value) |
void |
setInterpolatedValue(MotionWidget view,
float[] value) |
void |
setIntValue(int value) |
void |
setStringValue(java.lang.String value) |
void |
setValue(float[] value) |
void |
setValue(java.lang.Object value) |
java.lang.String |
toString() |
public CustomVariable(CustomVariable c)
public CustomVariable(java.lang.String name,
int type,
java.lang.String value)
public CustomVariable(java.lang.String name,
int type,
int value)
public CustomVariable(java.lang.String name,
int type,
float value)
public CustomVariable(java.lang.String name,
int type,
boolean value)
public CustomVariable(java.lang.String name,
int attributeType)
public CustomVariable(java.lang.String name,
int attributeType,
java.lang.Object value)
public CustomVariable(CustomVariable source, java.lang.Object value)
public CustomVariable copy()
public static java.lang.String colorString(int v)
public java.lang.String toString()
toString in class java.lang.Objectpublic int getType()
public boolean getBooleanValue()
public float getFloatValue()
public int getColorValue()
public int getIntegerValue()
public java.lang.String getStringValue()
public boolean isContinuous()
public void setFloatValue(float value)
public void setBooleanValue(boolean value)
public void setIntValue(int value)
public void setStringValue(java.lang.String value)
public int numberOfInterpolatedValues()
public float getValueToInterpolate()
public void getValuesToInterpolate(float[] ret)
public void setValue(float[] value)
public static int hsvToRgb(float hue,
float saturation,
float value)
public boolean diff(CustomVariable CustomAttribute)
CustomAttribute - public void setValue(java.lang.Object value)
public int getInterpolatedColor(float[] value)
public void setInterpolatedValue(MotionWidget view, float[] value)
public static int rgbaTocColor(float r,
float g,
float b,
float a)
public void applyToWidget(MotionWidget view)
public java.lang.String getName()