| java.lang.Object org.geotools.image.io.Palette org.geotools.image.io.ContinuousPalette
ContinuousPalette | final class ContinuousPalette extends Palette (Code) | | A factory for building
suitable for
DataBuffer.TYPE_FLOAT .
since: 2.4 version: $Id: ContinuousPalette.java 26708 2007-08-27 19:42:59Z desruisseaux $ author: Martin Desruisseaux |
Field Summary | |
final static boolean | USE_JAI_MODEL Tells if we should use
ComponentSampleModelJAI instead of the more standard
ComponentSampleModel . | final protected float | maximum The maximal value, inclusive. | final protected float | minimum The minimal value, inclusive. |
Constructor Summary | |
protected | ContinuousPalette(PaletteFactory factory, String name, float minimum, float maximum, int dataType, int numBands, int visibleBand) Creates a palette with the specified name. |
Method Summary | |
public boolean | equals(Object object) Compares this palette with the specified object for equality. | public synchronized ImageTypeSpecifier | getImageTypeSpecifier() Creates a grayscale image type for this palette. | double | getOffset() Returns the offset from normalized values (values in the range [0..1])
to values in the range of this palette. | double | getScale() Returns the scale from normalized values (values in the range [0..1])
to values in the range of this palette. | public int | hashCode() Returns a hash value for this palette. | public String | toString() Returns a string representation of this palette. |
USE_JAI_MODEL | final static boolean USE_JAI_MODEL(Code) | | Tells if we should use
ComponentSampleModelJAI instead of the more standard
ComponentSampleModel . There is two problems with models provided with J2SE 1.4:
This flag is set to
true for J2SE 1.4. It may be
changed to
false with future J2SE and JAI versions.
|
maximum | final protected float maximum(Code) | | The maximal value, inclusive.
|
minimum | final protected float minimum(Code) | | The minimal value, inclusive.
|
ContinuousPalette | protected ContinuousPalette(PaletteFactory factory, String name, float minimum, float maximum, int dataType, int numBands, int visibleBand)(Code) | | Creates a palette with the specified name.
Parameters: factory - The originating factory. Parameters: name - The palette name. Parameters: minimum - The minimal sample value expected. Parameters: maximum - The maximal sample value expected. Parameters: dataType - The data type as a DataBuffer.TYPE_FLOATor DataBuffer.TYPE_DOUBLE constant. Parameters: numBands - The number of bands (usually 1). Parameters: visibleBand - The band to use for color computations (usually 0). |
equals | public boolean equals(Object object)(Code) | | Compares this palette with the specified object for equality.
|
getImageTypeSpecifier | public synchronized ImageTypeSpecifier getImageTypeSpecifier() throws IOException(Code) | | Creates a grayscale image type for this palette.
The image type is suitable for floating point values.
A default color space scaled to fit data. throws: IOException - If an I/O operation was needed and failed. |
getOffset | double getOffset()(Code) | | Returns the offset from normalized values (values in the range [0..1])
to values in the range of this palette.
|
getScale | double getScale()(Code) | | Returns the scale from normalized values (values in the range [0..1])
to values in the range of this palette.
|
hashCode | public int hashCode()(Code) | | Returns a hash value for this palette.
|
toString | public String toString()(Code) | | Returns a string representation of this palette. Used for debugging purpose only.
|
|
|