Package net.imglib2.display
Class AbstractArrayColorTable<T>
- java.lang.Object
-
- net.imglib2.display.AbstractArrayColorTable<T>
-
- All Implemented Interfaces:
ArrayColorTable<T>,ColorTable
- Direct Known Subclasses:
ColorTable16,ColorTable8
public abstract class AbstractArrayColorTable<T> extends java.lang.Object implements ArrayColorTable<T>
Abstract superclass for array-based color lookup tables.
-
-
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 intargb(int i)Converts the tuple at the given position into a packed ARGB value.intgetComponentCount()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.intlookupARGB(double min, double max, double value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.imglib2.display.ArrayColorTable
getBits, getNative
-
Methods inherited from interface net.imglib2.display.ColorTable
get, getLength, getResampled
-
-
-
-
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
-
getValues
public T[] getValues()
Description copied from interface:ArrayColorTableGets a copy of the entire color table.- Specified by:
getValuesin interfaceArrayColorTable<T>
-
argb
public int argb(int i)
Description copied from interface:ArrayColorTableConverts the tuple at the given position into a packed ARGB value.- Specified by:
argbin interfaceArrayColorTable<T>
-
lookupARGB
public int lookupARGB(double min, double max, double value)- Specified by:
lookupARGBin interfaceColorTable
-
getComponentCount
public int getComponentCount()
Description copied from interface:ColorTableGets the number of color components in the table (typically 3 for RGB or 4 for RGBA).- Specified by:
getComponentCountin interfaceColorTable
-
-