Package ucar.visad.display
Class SelectValueScalarMap
java.lang.Object
ucar.visad.display.MapAdapter
ucar.visad.display.ScalarMapAdapter
ucar.visad.display.SelectValueScalarMap
- All Implemented Interfaces:
Comparable
,Propertied
Provides support for adapting ScalarMap-s to
Display.SelectValue
.
Instances of this class have the the JavaBean properties of the
superclass as well as the following, bound, JavaBean properties:
Name | Type | Access | Default | Description |
---|---|---|---|---|
value | Real |
set/get | new Real(Double.NaN) | The selected value |
- Version:
- $Revision: 1.8 $
- Author:
- Steven R. Emmerson
-
Field Summary
FieldsFields inherited from class ucar.visad.display.ScalarMapAdapter
SCALAR_MAP, SCALAR_TYPE
-
Constructor Summary
Constructors -
Method Summary
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
-
Field Details
-
VALUE
The name of the value property.- See Also:
-
-
Constructor Details
-
SelectValueScalarMap
public SelectValueScalarMap(RealType realType, DisplayAdapter display) throws VisADException, RemoteException Constructs.- Parameters:
realType
- The type of data to be value-selected.display
- The adapted, VisAD display for rendering.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
-
Method Details
-
setValue
Sets the selection value. This method fires aPropertyChangeEvent
forVALUE
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 selection value.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.- See Also:
-
setValue
Sets the selection value. This method fires aPropertyChangeEvent
forVALUE
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 selection 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:
-
getValue
Returns the selection value.- Returns:
- The selection value.
-
setControl
Sets the control of the underlyingScalarMap
. This is a template method.- Specified by:
setControl
in classScalarMapAdapter
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-