|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectRangeSpecifier
public class RangeSpecifier
Argument type for DefaultCoverageProcessor operations for specifying the range,
colors and units of a computation result. RangeSpecifier are used for tuning the
Category object to be constructed.
By default, most operations try to guess a reasonable range for
output values. For example the "GradientMagnitude" operation will produces new
GridCoverage2D with sample values ranging from 0 to
the maximal possible value. This maximal value is usually much to high, since gradient
are usually not that strong. This parameter allows user to override the default behavior
with their explicit range.
All RangeSpecifier's properties are optional; it is up to processor's
operation to replace null values by a default
one.
| coverage/geotk-coverage (download) | View source code for this class |
| Constructor Summary | |
|---|---|
RangeSpecifier()
Constructs a default RangeSpecifier with no value set. |
|
RangeSpecifier(MathTransform1D transform)
Constructs a RangeSpecifier initialised to the specified
"sample to geophysics" transform. |
|
RangeSpecifier(NumberRange<?> range)
Constructs a RangeSpecifier initialised to the spécified range. |
|
| Method Summary | |
|---|---|
RangeSpecifier |
clone()
Returns a clone of this object. |
boolean |
equals(Object object)
Compares this range specifier with the specified object for equality. |
Color[] |
getColors()
Returns the target colors, or null if none. |
NumberRange<?> |
getRange()
Returns the target range, or null if none. |
MathTransform1D |
getSampleToGeophysics()
Returns the target "sample to geophysics" transform, or null if none. |
Unit<?> |
getUnit()
Returns the target range units, or null if none. |
int |
hashCode()
Returns a hash code value for this range specifier. |
void |
setColors(Color[] colors)
Set the target colors to the specified value. |
void |
setRange(NumberRange<?> range)
Set the target range to the specified values. |
void |
setSampleToGeophysics(MathTransform1D transform)
Set the target "sample to geophysics" transform to the specified value. |
void |
setUnit(Unit<?> unit)
Set the target range units to the specified value. |
String |
toString()
Returns a string representation of this range specifier. |
| Methods inherited from class Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RangeSpecifier()
RangeSpecifier with no value set.
public RangeSpecifier(NumberRange<?> range)
RangeSpecifier initialised to the spécified range.
range - The rangepublic RangeSpecifier(MathTransform1D transform)
RangeSpecifier initialised to the specified
"sample to geophysics" transform.
transform - The sample to geophysics transform.| Method Detail |
|---|
public NumberRange<?> getRange()
null if none.
public void setRange(NumberRange<?> range)
range - The target range.public MathTransform1D getSampleToGeophysics()
null if none.
public void setSampleToGeophysics(MathTransform1D transform)
transform - The new sample to geophysics transform.public Unit<?> getUnit()
null if none.
public void setUnit(Unit<?> unit)
unit - The new units.public Color[] getColors()
null if none.
public void setColors(Color[] colors)
colors - The new colors.public RangeSpecifier clone()
clone in class ObjectObject.clone()public int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Objectobject - The object to compare with.
true if the given object is equals to this range specifier.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||