ucar.visad.display
Class SelectRangeScalarMap

java.lang.Object
  extended by ucar.visad.display.MapAdapter
      extended by ucar.visad.display.ScalarMapAdapter
          extended by ucar.visad.display.SelectRangeScalarMap
All Implemented Interfaces:
Comparable, Propertied

public final class SelectRangeScalarMap
extends ScalarMapAdapter

Provides support for adapting ScalarMap-s of Display.SelectRange.

Instances of this class have the the JavaBean properties of the superclass.

Version:
$Revision: 1.8 $
Author:
Steven R. Emmerson

Field Summary
 
Fields inherited from class ucar.visad.display.ScalarMapAdapter
SCALAR_MAP, SCALAR_TYPE
 
Constructor Summary
protected SelectRangeScalarMap(RealType realType, DisplayAdapter display)
          Constructs.
 
Method Summary
protected  void setControl()
          Sets the control of the underlying ScalarMap.
 void setRange(float min, float max)
          Sets the data range.
 void setRange(Real min, Real max)
          Sets the data range.
 
Methods inherited from class ucar.visad.display.ScalarMapAdapter
addScalarMapListener, compareTo, equals, getControl, getDisplayType, getScalarType, hashCode, removeScalarMapListener, scalarMapChange, setScalarType
 
Methods inherited from class ucar.visad.display.MapAdapter
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getDisplayRealType, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectRangeScalarMap

protected SelectRangeScalarMap(RealType realType,
                               DisplayAdapter display)
                        throws VisADException,
                               RemoteException
Constructs.

Parameters:
realType - The type of data to be mapped to the X-axis.
display - The adapted, VisAD display for rendering.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.
Method Detail

setRange

public void setRange(float min,
                     float max)
              throws VisADException,
                     RemoteException
Sets the data range.

Parameters:
min - The minimum data value.
max - The maximum data value.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

setRange

public void setRange(Real min,
                     Real max)
              throws VisADException,
                     RemoteException
Sets the data range.

Overrides:
setRange in class ScalarMapAdapter
Parameters:
min - The minimum data value.
max - The maximum data value.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

setControl

protected void setControl()
                   throws VisADException,
                          RemoteException
Sets the control of the underlying ScalarMap. This is a template method.

Specified by:
setControl in class ScalarMapAdapter
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.