Interface ArrayColorTable<T>

All Superinterfaces:
ColorTable
All Known Implementing Classes:
AbstractArrayColorTable, ColorTable16, ColorTable8

public interface ArrayColorTable<T> extends ColorTable
Interface for all ColorTable implementations that use an array to store their color table information. This interface provides an accessor to that value array and other conveniences, and the generic type of this table corresponds to the array type that is returned.
Author:
Mark Hiner, Curtis Rueden
  • Field Summary

    Fields inherited from interface net.imglib2.display.ColorTable

    ALPHA, BLUE, GREEN, RED
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    argb(int i)
    Converts the tuple at the given position into a packed ARGB value.
    int
    Gets the number of bits in each color component value.
    int
    getNative(int comp, int bin)
    Gets an individual value from the color table.
    T[]
    Gets a copy of the entire color table.

    Methods inherited from interface net.imglib2.display.ColorTable

    get, getComponentCount, getLength, getResampled, lookupARGB
  • Method Details

    • getValues

      T[] getValues()
      Gets a copy of the entire color table.
    • argb

      int argb(int i)
      Converts the tuple at the given position into a packed ARGB value.
    • getBits

      int getBits()
      Gets the number of bits in each color component value.
    • getNative

      int getNative(int comp, int bin)
      Gets an individual value from the color table.

      Value is unsigned with getBits() bits.

      Parameters:
      comp - The color component to query.
      bin - The index into the color table.
      Returns:
      The value of the table at the specified position.