public class LinearColorMapElement extends DefaultLinearPiecewiseTransform1DElement implements PiecewiseTransform1DElement, ColorMapTransformElement
LinearColorMapElement
is a special implementation of both PiecewiseTransform1DElement
and ColorMapTransformElement
which can be used to do various types of classifications on raster. Specifically the supported types of classifications are unique values,
classified and color ramps.
The supported types of classifications are LinearColorMapType#TYPE_RAMP
, LinearColorMapType#TYPE_VALUES
and
LinearColorMapType#TYPE_INTERVALS
.
LinearColorMap
,
LinearColorMap.LinearColorMapType
,
Serialized FormModifier and Type | Method and Description |
---|---|
static LinearColorMapElement |
create(CharSequence name,
Color[] colors,
Range valueRange,
Range sampleRange) |
static LinearColorMapElement |
create(CharSequence name,
Color color,
double value,
int sample) |
static LinearColorMapElement |
create(CharSequence name,
Color color,
float value,
int sample) |
static LinearColorMapElement |
create(CharSequence name,
Color color,
int value,
int sample) |
static LinearColorMapElement |
create(CharSequence name,
Color color,
Range inRange,
int outVal) |
static LinearColorMapElement |
create(CharSequence name,
Color color,
short value,
int sample) |
boolean |
equals(Object object)
Implementation of
Object.equals(Object) for DomainElement1D s. |
Color[] |
getColors()
Returns the set of colors for this category.
|
protected Class<?> |
getEquivalenceClass() |
int |
hashCode()
Returns a hash value for this domain element.
|
String |
toString() |
getOffset, getOutputMaximum, getOutputMinimum, getOutputRange, getScale, isOutputMaximumInfinite, isOutputMaximumNaN, isOutputMinimumInfinite, isOutputMinimumNaN
create, create, create, create, create, create, create, getSourceDimensions, getTargetDimensions, getTransform, inverse, isIdentity, setInverse, setTransform, transform, transform
compareTo, contains, contains, contains, getInputMaximum, getInputMinimum, getName, getRange, isInputMaximumInfinite, isInputMaximumNaN, isInputMinimumInfinite, isInputMinimumNaN
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
transform
contains, contains, contains, getName, getRange
compareTo
public static LinearColorMapElement create(CharSequence name, Color[] colors, Range valueRange, Range sampleRange) throws IllegalArgumentException
IllegalArgumentException
public static LinearColorMapElement create(CharSequence name, Color color, Range inRange, int outVal) throws IllegalArgumentException
IllegalArgumentException
public static LinearColorMapElement create(CharSequence name, Color color, short value, int sample) throws IllegalArgumentException
IllegalArgumentException
LinearColorMapElement#ClassificationCategory(CharSequence, Color[], NumberRange, NumberRange)
public static LinearColorMapElement create(CharSequence name, Color color, int value, int sample) throws IllegalArgumentException
IllegalArgumentException
LinearColorMapElement#ClassificationCategory(CharSequence, Color[], NumberRange, NumberRange)
public static LinearColorMapElement create(CharSequence name, Color color, float value, int sample) throws IllegalArgumentException
IllegalArgumentException
LinearColorMapElement#ClassificationCategory(CharSequence, Color[], NumberRange, NumberRange)
public static LinearColorMapElement create(CharSequence name, Color color, double value, int sample) throws IllegalArgumentException
IllegalArgumentException
LinearColorMapElement#ClassificationCategory(CharSequence, Color[], NumberRange, NumberRange)
public boolean equals(Object object)
DefaultDomainElement1D
Object.equals(Object)
for DomainElement1D
s.
Two DefaultDomainElement1D
s are considered to be equal if they have the same inputr range and the same name.
equals
in interface DomainElement1D
equals
in class DefaultLinearPiecewiseTransform1DElement
object
- the reference object with which to compare.true
if this object is the same as the obj argument; false
otherwise.Object.equals(Object)
public Color[] getColors()
getColors
in interface ColorMapTransformElement
GridSampleDimension#getColorModel
public String toString()
toString
in class DefaultLinearPiecewiseTransform1DElement
protected Class<?> getEquivalenceClass()
getEquivalenceClass
in class DefaultLinearPiecewiseTransform1DElement
public int hashCode()
DefaultDomainElement1D
hashCode
in class DefaultLinearPiecewiseTransform1DElement
Copyright © 2006–2017 GeoSolutions. All rights reserved.