| java.lang.Object org.geotools.coverage.ColorModelFactory
ColorModelFactory | final class ColorModelFactory (Code) | | A factory for
ColorModel objects built from a list of
Category objects.
This factory provides only one public static method:
ColorModelFactory.getColorModel . Instances
of
ColorModel are shared among all callers in the running virtual machine.
since: 2.1 version: $Id: ColorModelFactory.java 25421 2007-05-05 16:55:18Z desruisseaux $ author: Martin Desruisseaux |
Method Summary | |
public boolean | equals(Object other) Check this object with an other one for equality. | public static ColorModel | getColorModel(Category[] categories, int type, int visibleBand, int numBands) Returns a color model for a category set. | public int | hashCode() Returns a hash code. |
equals | public boolean equals(Object other)(Code) | | Check this object with an other one for equality.
|
getColorModel | public static ColorModel getColorModel(Category[] categories, int type, int visibleBand, int numBands)(Code) | | Returns a color model for a category set. This method builds up the color model
from each category's colors (as returned by
Category.getColors ).
Parameters: categories - The set of categories. Parameters: type - The color model type. One of DataBuffer.TYPE_BYTE,DataBuffer.TYPE_USHORT, DataBuffer.TYPE_FLOAT orDataBuffer.TYPE_DOUBLE. Parameters: visibleBand - The band to be made visible (usually 0). All other bands, if anywill be ignored. Parameters: numBands - The number of bands for the color model (usually 1). The returned colormodel will renderer only the visibleBand and ignore the others, butthe existence of all numBands will be at least tolerated. Supplementalbands, even invisible, are useful for processing with Java Advanced Imaging. The requested color model, suitable for RenderedImage objects with valuesin the CategoryList.getRange range. |
hashCode | public int hashCode()(Code) | | Returns a hash code.
|
|
|