ucar.visad.display
Class SurfaceScalarMap

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

public class SurfaceScalarMap
extends IsoContourScalarMap

Provides support for adapting ScalarMap-s to Display.IsoContour for displays of iso-surfaces.

Instances of this class have the the JavaBean properties of IsoContourScalarMap as well as the following, bound, JavaBean properties:

Name Type Access Default Description
value Real set/get new Real(Double.NaN) The iso-surface value

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

Field Summary
static String VALUE
          The name of the iso-surface value property.
 
Fields inherited from class ucar.visad.display.ScalarMapAdapter
SCALAR_MAP, SCALAR_TYPE
 
Constructor Summary
SurfaceScalarMap(RealType realType, DisplayAdapter display)
          Constructs.
 
Method Summary
 Real getValue()
          Returns the iso-surface value.
protected  void setControl()
          Sets the control of the underlying ScalarMap.
 void setValue(float value)
          Sets the iso-surface value.
 void setValue(Real value)
          Sets the iso-surface value.
 
Methods inherited from class ucar.visad.display.IsoContourScalarMap
getContourControl
 
Methods inherited from class ucar.visad.display.ScalarMapAdapter
addScalarMapListener, compareTo, equals, getControl, getDisplayType, getScalarType, hashCode, removeScalarMapListener, scalarMapChange, setRange, 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
 

Field Detail

VALUE

public static final String VALUE
The name of the iso-surface value property.

See Also:
Constant Field Values
Constructor Detail

SurfaceScalarMap

public SurfaceScalarMap(RealType realType,
                        DisplayAdapter display)
                 throws VisADException,
                        RemoteException
Constructs.

Parameters:
realType - The type of data to be iso-surface contoured.
display - The adapted, VisAD display for rendering.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.
Method Detail

setValue

public final void setValue(float value)
                    throws RemoteException,
                           VisADException
Sets the iso-surface value. This method fires a PropertyChangeEvent for VALUE with this instance as the source and the old and new values appropriately set. The event is fired synchronously -- so watch out for deadlock.

Parameters:
value - The iso-surface value.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.
See Also:
VALUE

setValue

public final void setValue(Real value)
                    throws UnitException,
                           RemoteException,
                           VisADException
Sets the iso-surface value. This method fires a PropertyChangeEvent for VALUE with this instance as the source and the old and new values appropriately set. The event is fired synchronously -- so watch out for deadlock.

Parameters:
value - The iso-surface value.
Throws:
UnitException - The unit of the given value is not convertible to the unit of the data type.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
See Also:
VALUE

getValue

public final Real getValue()
Returns the iso-surface value.

Returns:
The iso-surface value.

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.