public class IlvValleyIntervalColorModel extends IlvIntervalColorModel implements IlvColorIntervalLimitFormat
Modifier and Type | Field and Description |
---|---|
static String |
ELEVATION
Elevation type pixel name.
|
static String |
UNKNOWN
Unknown type pixel name.
|
static String |
VALLEY
Valley type pixel name.
|
pixel_bits, transferType
BITMASK, OPAQUE, TRANSLUCENT
Constructor and Description |
---|
IlvValleyIntervalColorModel()
Creates a valley color model with default color and limits values.
|
IlvValleyIntervalColorModel(Color[] colors,
short[] limits)
Creates a valley color model .
|
IlvValleyIntervalColorModel(IlvInputStream stream)
Creates a valley color model from an input stream.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowLimitChange()
Returns false - the user will not be able to change the color model limits - they must stay at 0,1,2.
|
String |
format(int value)
Formats a pixel value into a String (VALLEY,ELEVATION or UNKNOWN).
|
int |
parse(String limit)
Parses a string (VALLEY,ELEVATION or UNKNOWN) into pixel indexes.
|
equals, getAlpha, getBlue, getColors, getGreen, getIntervalCount, getLimits, getRed, getRGB, hashCode, isPersistent, MakeElevationColorModel, write
coerceData, createCompatibleSampleModel, createCompatibleWritableRaster, finalize, getAlpha, getAlphaRaster, getBlue, getColorSpace, getComponents, getComponents, getComponentSize, getComponentSize, getDataElement, getDataElement, getDataElements, getDataElements, getDataElements, getGreen, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRed, getRGB, getRGBdefault, getTransferType, getTransparency, getUnnormalizedComponents, hasAlpha, isAlphaPremultiplied, isCompatibleRaster, isCompatibleSampleModel, toString
public static final String VALLEY
public static final String ELEVATION
public static final String UNKNOWN
public IlvValleyIntervalColorModel()
public IlvValleyIntervalColorModel(IlvInputStream stream) throws IlvReadFileException
stream
- stream to read from.IlvReadFileException
public IlvValleyIntervalColorModel(Color[] colors, short[] limits)
public String format(int value)
format
in interface IlvColorIntervalLimitFormat
value
- The value to formatIlvColorIntervalLimitFormat.format(int)
public int parse(String limit)
parse
in interface IlvColorIntervalLimitFormat
limit
- String to parse.IlvColorIntervalLimitFormat.parse(java.lang.String)
public boolean allowLimitChange()
allowLimitChange
in interface IlvColorIntervalLimitFormat
true
to give user access to insert/delete/change limits.IlvColorIntervalLimitFormat.allowLimitChange()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.