Class CustomAttribute


  • public class CustomAttribute
    extends java.lang.Object
    Defines non standard Attributes
    • Method Detail

      • isContinuous

        public boolean isContinuous()
        Continuous types are interpolated they are fired only at
      • setFloatValue

        public void setFloatValue​(float value)
      • setColorValue

        public void setColorValue​(int value)
      • setIntValue

        public void setIntValue​(int value)
      • setStringValue

        public void setStringValue​(java.lang.String value)
      • numberOfInterpolatedValues

        public int numberOfInterpolatedValues()
        The number of interpolation values that need to be interpolated Typically 1 but 3 for colors.
        Returns:
        Typically 1 but 3 for colors.
      • getValueToInterpolate

        public float getValueToInterpolate()
        Transforms value to a float for the purpose of interpolation
        Returns:
        interpolation value
      • getValuesToInterpolate

        public void getValuesToInterpolate​(float[] ret)
      • setValue

        public void setValue​(float[] value)
      • hsvToRgb

        public static int hsvToRgb​(float hue,
                                   float saturation,
                                   float value)
      • diff

        public boolean diff​(CustomAttribute customAttribute)
        test if the two attributes are different
      • setValue

        public void setValue​(java.lang.Object value)