Class AbstractArrayColorTable<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected T[] values
      Actual color table values.
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractArrayColorTable​(T... values)
      Initializes a color table with the given table values.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int argb​(int i)
      Converts the tuple at the given position into a packed ARGB value.
      int getComponentCount()
      Gets the number of color components in the table (typically 3 for RGB or 4 for RGBA).
      T[] getValues()
      Gets a copy of the entire color table.
      int lookupARGB​(double min, double max, double value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • values

        protected final T[] values
        Actual color table values.
    • Constructor Detail

      • AbstractArrayColorTable

        public AbstractArrayColorTable​(T... values)
        Initializes a color table with the given table values.
    • Method Detail

      • argb

        public int argb​(int i)
        Description copied from interface: ArrayColorTable
        Converts the tuple at the given position into a packed ARGB value.
        Specified by:
        argb in interface ArrayColorTable<T>
      • lookupARGB

        public int lookupARGB​(double min,
                              double max,
                              double value)
        Specified by:
        lookupARGB in interface ColorTable
      • getComponentCount

        public int getComponentCount()
        Description copied from interface: ColorTable
        Gets the number of color components in the table (typically 3 for RGB or 4 for RGBA).
        Specified by:
        getComponentCount in interface ColorTable