org.geotools.gp
Class RangeSpecifier

java.lang.Object
  extended byorg.geotools.gp.RangeSpecifier
All Implemented Interfaces:
java.lang.Cloneable, org.opengis.util.Cloneable, java.io.Serializable

Deprecated. Replaced by org.geotools.referencing.processing.RangeSpecifier.

public class RangeSpecifier
extends java.lang.Object
implements java.io.Serializable, org.opengis.util.Cloneable

Argument type for GridCoverageProcessor operations for specifying the range, colors and units of a computation result. RangeSpecifier are used for tuning the Category object to be constructed. For example the "GradientMagnitude" operation will produces new GridCoverage with sample values ranging from 0 to some maximal value which may be very different from the source GridCoverage range. By default, most operations try to guess a raisonable range for output values. This default behavior can be overriden with an explicit RangeSpecifier argument.

All RangeSpecifier's properties are optional; it is up to processor's operation to replace null values by a default one. RangeSpecifier argument is used by the "GradientMagnitude" operation.

Version:
$Id: RangeSpecifier.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux
See Also:
Serialized Form

Constructor Summary
RangeSpecifier()
          Deprecated. Construct a default RangeSpecifier with no value set.
RangeSpecifier(MathTransform1D transform)
          Deprecated. Construct a RangeSpecifier initialised to the specified "sample to geophysics" transform.
RangeSpecifier(NumberRange range)
          Deprecated. Construct a RangeSpecifier initialised to the sp?cified range.
 
Method Summary
 java.lang.Object clone()
          Deprecated. Returns a clone of this object.
 boolean equals(java.lang.Object object)
          Deprecated. Compare this range specifier with the specified object for equality.
 java.awt.Color[] getColors()
          Deprecated. Returns the target colors, or null if none.
 NumberRange getRange()
          Deprecated. Returns the target range, or null if none.
 MathTransform1D getSampleToGeophysics()
          Deprecated. Returns the target "sample to geophysics" transform, or null if none.
 Unit getUnit()
          Deprecated. Returns the target range units, or null if none.
 int hashCode()
          Deprecated. Returns a hash code value for this range specifier.
 void setColors(java.awt.Color[] colors)
          Deprecated. Set the target colors to the specified value.
 void setRange(NumberRange range)
          Deprecated. Set the target range to the specified values.
 void setSampleToGeophysics(MathTransform1D transform)
          Deprecated. Set the target "sample to geophysics" transform to the specified value.
 void setUnit(Unit unit)
          Deprecated. Set the target range units to the specified value.
 java.lang.String toString()
          Deprecated. Returns a string representation of this range specifier.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RangeSpecifier

public RangeSpecifier()
Deprecated. 
Construct a default RangeSpecifier with no value set.


RangeSpecifier

public RangeSpecifier(NumberRange range)
Deprecated. 
Construct a RangeSpecifier initialised to the sp?cified range.


RangeSpecifier

public RangeSpecifier(MathTransform1D transform)
Deprecated. 
Construct a RangeSpecifier initialised to the specified "sample to geophysics" transform.

Method Detail

getRange

public NumberRange getRange()
Deprecated. 
Returns the target range, or null if none.


setRange

public void setRange(NumberRange range)
Deprecated. 
Set the target range to the specified values. Setting this property will clear the sample to geophysics transform, since those properties are mutually exclusive.

Parameters:
range - The target range.

getSampleToGeophysics

public MathTransform1D getSampleToGeophysics()
Deprecated. 
Returns the target "sample to geophysics" transform, or null if none.


setSampleToGeophysics

public void setSampleToGeophysics(MathTransform1D transform)
Deprecated. 
Set the target "sample to geophysics" transform to the specified value. Setting this property will clear the range property, since those properties are mutually exclusive.


getUnit

public Unit getUnit()
Deprecated. 
Returns the target range units, or null if none.


setUnit

public void setUnit(Unit unit)
Deprecated. 
Set the target range units to the specified value.


getColors

public java.awt.Color[] getColors()
Deprecated. 
Returns the target colors, or null if none.


setColors

public void setColors(java.awt.Color[] colors)
Deprecated. 
Set the target colors to the specified value.


clone

public java.lang.Object clone()
Deprecated. 
Returns a clone of this object.

Specified by:
clone in interface org.opengis.util.Cloneable

hashCode

public int hashCode()
Deprecated. 
Returns a hash code value for this range specifier.


equals

public boolean equals(java.lang.Object object)
Deprecated. 
Compare this range specifier with the specified object for equality.


toString

public java.lang.String toString()
Deprecated. 
Returns a string representation of this range specifier.



Copyright © GeoTools. All Rights Reserved.