public class SelectValueScalarMap extends ScalarMapAdapter
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 |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VALUE
The name of the value property.
|
SCALAR_MAP, SCALAR_TYPE
Constructor and Description |
---|
SelectValueScalarMap(visad.RealType realType,
DisplayAdapter display)
Constructs.
|
Modifier and Type | Method and Description |
---|---|
visad.Real |
getValue()
Returns the selection value.
|
protected void |
setControl()
Sets the control of the underlying
ScalarMap . |
void |
setValue(float value)
Sets the selection value.
|
void |
setValue(visad.Real value)
Sets the selection value.
|
addScalarMapListener, compareTo, equals, getControl, getDisplayType, getScalarType, hashCode, removeScalarMapListener, scalarMapChange, setRange, setScalarType
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getDisplayRealType, removePropertyChangeListener, removePropertyChangeListener
public static final java.lang.String VALUE
public SelectValueScalarMap(visad.RealType realType, DisplayAdapter display) throws visad.VisADException, java.rmi.RemoteException
realType
- The type of data to be value-selected.display
- The adapted, VisAD display for rendering.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public final void setValue(float value) throws java.rmi.RemoteException, visad.VisADException
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.value
- The selection value.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.VALUE
public final void setValue(visad.Real value) throws visad.UnitException, java.rmi.RemoteException, visad.VisADException
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.value
- The selection value.visad.UnitException
- The unit of the given value is not convertible
to the unit of the data type.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.VALUE
public final visad.Real getValue()
protected void setControl() throws visad.VisADException, java.rmi.RemoteException
ScalarMap
. This is a
template method.setControl
in class ScalarMapAdapter
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.