Interface ColorTable

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALPHA  
      static int BLUE  
      static int GREEN  
      static int RED  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int get​(int comp, int bin)
      Gets an individual value from the color table.
      int getComponentCount()
      Gets the number of color components in the table (typically 3 for RGB or 4 for RGBA).
      int getLength()
      Gets the number of elements for each color component in the table.
      int getResampled​(int comp, int bins, int bin)
      Gets an individual value from a color table with given number of bins.
      int lookupARGB​(double min, double max, double value)  
    • Method Detail

      • lookupARGB

        int lookupARGB​(double min,
                       double max,
                       double value)
      • getComponentCount

        int getComponentCount()
        Gets the number of color components in the table (typically 3 for RGB or 4 for RGBA).
      • getLength

        int getLength()
        Gets the number of elements for each color component in the table.
      • get

        int get​(int comp,
                int bin)
        Gets an individual value from the color table.
        Parameters:
        comp - The color component to query.
        bin - The index into the color table.
        Returns:
        The value of the table at the specified position.
      • getResampled

        int getResampled​(int comp,
                         int bins,
                         int bin)
        Gets an individual value from a color table with given number of bins.
        Parameters:
        comp - The color component to query.
        bins - The total number of bins.
        bin - The index into the color table.
        Returns:
        The value of the table at the specified position.