Interface ColorTable

All Known Subinterfaces:
ArrayColorTable<T>
All Known Implementing Classes:
AbstractArrayColorTable, ColorTable16, ColorTable8

public interface ColorTable
Author:
Aivar Grislis
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    get(int comp, int bin)
    Gets an individual value from the color table.
    int
    Gets the number of color components in the table (typically 3 for RGB or 4 for RGBA).
    int
    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)
     
  • Field Details

  • Method Details

    • 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.