Package net.imglib2.display
Interface ArrayColorTable<T>
-
- All Superinterfaces:
ColorTable
- All Known Implementing Classes:
AbstractArrayColorTable
,ColorTable16
,ColorTable8
public interface ArrayColorTable<T> extends ColorTable
Interface for allColorTable
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
argb(int i)
Converts the tuple at the given position into a packed ARGB value.int
getBits()
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[]
getValues()
Gets a copy of the entire color table.-
Methods inherited from interface net.imglib2.display.ColorTable
get, getComponentCount, getLength, getResampled, lookupARGB
-
-
-
-
Method Detail
-
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.
-
-