CustomAttribute
public class CustomAttribute
Defines non standard Attributes
Summary
Nested types |
|---|
public enum CustomAttribute.AttributeType |
Public constructors |
|---|
CustomAttribute( |
CustomAttribute(CustomAttribute source, Object value) |
CustomAttribute( |
Public methods |
|
|---|---|
boolean |
diff(CustomAttribute customAttribute)test if the two attributes are different |
CustomAttribute.AttributeType |
getType() |
float |
Transforms value to a float for the purpose of interpolation |
void |
getValuesToInterpolate(float[] ret) |
static int |
hsvToRgb(float hue, float saturation, float value) |
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. |
void |
setColorValue(int value) |
void |
setFloatValue(float value) |
void |
setIntValue(int value) |
void |
setStringValue(String value) |
void |
|
void |
setValue(float[] value) |
Public constructors
CustomAttribute
public CustomAttribute(
String name,
CustomAttribute.AttributeType attributeType
)
CustomAttribute
public CustomAttribute(
String name,
CustomAttribute.AttributeType attributeType,
Object value,
boolean method
)
Public methods
diff
public boolean diff(CustomAttribute customAttribute)
test if the two attributes are different
getValueToInterpolate
public float getValueToInterpolate()
Transforms value to a float for the purpose of interpolation
| Returns | |
|---|---|
float |
interpolation value |
isContinuous
public boolean isContinuous()
Continuous types are interpolated they are fired only at
numberOfInterpolatedValues
public int numberOfInterpolatedValues()
The number of interpolation values that need to be interpolated Typically 1 but 3 for colors.
| Returns | |
|---|---|
int |
Typically 1 but 3 for colors. |