public class CustomAttribute


Defines non standard Attributes

Summary

Nested types

Public constructors

CustomAttribute(
    String name,
    CustomAttribute.AttributeType attributeType
)
CustomAttribute(
    String name,
    CustomAttribute.AttributeType attributeType,
    Object value,
    boolean method
)

Public methods

boolean
diff(CustomAttribute customAttribute)

test if the two attributes are different

CustomAttribute.AttributeType
float

Transforms value to a float for the purpose of interpolation

void
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
void
void
setValue(float[] value)

Public constructors

CustomAttribute

Added in 1.1.0
public CustomAttribute(
    String name,
    CustomAttribute.AttributeType attributeType
)

CustomAttribute

Added in 1.1.0
public CustomAttribute(CustomAttribute source, Object value)

CustomAttribute

Added in 1.1.0
public CustomAttribute(
    String name,
    CustomAttribute.AttributeType attributeType,
    Object value,
    boolean method
)

Public methods

diff

Added in 1.1.0
public boolean diff(CustomAttribute customAttribute)

test if the two attributes are different

getType

Added in 1.1.0
public CustomAttribute.AttributeType getType()

getValueToInterpolate

Added in 1.1.0
public float getValueToInterpolate()

Transforms value to a float for the purpose of interpolation

Returns
float

interpolation value

getValuesToInterpolate

Added in 1.1.0
public void getValuesToInterpolate(float[] ret)

hsvToRgb

Added in 1.1.0
public static int hsvToRgb(float hue, float saturation, float value)

isContinuous

Added in 1.1.0
public boolean isContinuous()

Continuous types are interpolated they are fired only at

numberOfInterpolatedValues

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

setColorValue

Added in 1.1.0
public void setColorValue(int value)

setFloatValue

Added in 1.1.0
public void setFloatValue(float value)

setIntValue

Added in 1.1.0
public void setIntValue(int value)

setStringValue

Added in 1.1.0
public void setStringValue(String value)

setValue

Added in 1.1.0
public void setValue(Object value)

setValue

Added in 1.1.0
public void setValue(float[] value)