- java.lang.Object
- 
- ij.LookUpTable
 
- 
 public class LookUpTable extends java.lang.ObjectThis class represents a color look-up table.
- 
- 
Constructor SummaryConstructors Constructor Description LookUpTable(java.awt.Image img)Constructs a LookUpTable object from an AWT Image.LookUpTable(java.awt.image.ColorModel cm)Constructs a LookUpTable object from a ColorModel.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.awt.image.ColorModelcreateGrayscaleColorModel(boolean invert)voiddrawColorBar(java.awt.Graphics g, int x, int y, int width, int height)voiddrawUnscaledColorBar(ImageProcessor ip, int x, int y, int width, int height)byte[]getBlues()java.awt.image.ColorModelgetColorModel()byte[]getGreens()intgetMapSize()byte[]getReds()booleanisGrayscale()Returnstrueif this is a 256 entry grayscale LUT.
 
- 
- 
- 
Method Detail- 
getMapSizepublic int getMapSize() 
 - 
getRedspublic byte[] getReds() 
 - 
getGreenspublic byte[] getGreens() 
 - 
getBluespublic byte[] getBlues() 
 - 
getColorModelpublic java.awt.image.ColorModel getColorModel() 
 - 
isGrayscalepublic boolean isGrayscale() Returnstrueif this is a 256 entry grayscale LUT.- See Also:
- ImageProcessor.isColorLut()
 
 - 
drawColorBarpublic void drawColorBar(java.awt.Graphics g, int x, int y, int width, int height)
 - 
drawUnscaledColorBarpublic void drawUnscaledColorBar(ImageProcessor ip, int x, int y, int width, int height) 
 - 
createGrayscaleColorModelpublic static java.awt.image.ColorModel createGrayscaleColorModel(boolean invert) 
 
- 
 
-