public class CustomAttribute
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CustomAttribute.AttributeType |
| Constructor and Description |
|---|
CustomAttribute(CustomAttribute source,
java.lang.Object value) |
CustomAttribute(java.lang.String name,
CustomAttribute.AttributeType attributeType) |
CustomAttribute(java.lang.String name,
CustomAttribute.AttributeType attributeType,
java.lang.Object value,
boolean method) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
diff(CustomAttribute CustomAttribute)
test if the two attributes are different
|
CustomAttribute.AttributeType |
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.
|
void |
setColorValue(int value) |
void |
setFloatValue(float value) |
void |
setIntValue(int value) |
void |
setStringValue(java.lang.String value) |
void |
setValue(float[] value) |
void |
setValue(java.lang.Object value) |
public CustomAttribute(java.lang.String name,
CustomAttribute.AttributeType attributeType)
public CustomAttribute(java.lang.String name,
CustomAttribute.AttributeType attributeType,
java.lang.Object value,
boolean method)
public CustomAttribute(CustomAttribute source, java.lang.Object value)
public CustomAttribute.AttributeType getType()
public boolean isContinuous()
public void setFloatValue(float value)
public void setColorValue(int 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(CustomAttribute CustomAttribute)
CustomAttribute - public void setValue(java.lang.Object value)