public class IlvLineOfSightIntervalColorModel extends IlvIntervalColorModel implements IlvColorIntervalLimitFormat
Modifier and Type | Field and Description |
---|---|
static String |
CENTER
Unknown type pixel name.
|
static String |
INVISIBLE
Valley type pixel name.
|
static String |
UNKNOWN
Unknown type pixel name.
|
static String |
VISIBLE
Elevation type pixel name.
|
pixel_bits, transferType
BITMASK, OPAQUE, TRANSLUCENT
Constructor and Description |
---|
IlvLineOfSightIntervalColorModel()
Creates a line of sight color model with default color and limits values.
|
IlvLineOfSightIntervalColorModel(Color[] colors,
short[] limits)
Creates a line of sight color model.
|
IlvLineOfSightIntervalColorModel(IlvInputStream stream)
Creates a line of sight 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 INVISIBLE
public static final String VISIBLE
public static final String CENTER
public static final String UNKNOWN
public IlvLineOfSightIntervalColorModel()
public IlvLineOfSightIntervalColorModel(IlvInputStream stream) throws IlvReadFileException
stream
- stream to read from.IlvReadFileException
public IlvLineOfSightIntervalColorModel(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.