|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.MapAdapter
ucar.visad.display.ScalarMapAdapter
ucar.visad.display.SelectValueScalarMap
public class SelectValueScalarMap
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 |
| Field Summary | |
|---|---|
static String |
VALUE
The name of the value property. |
| Fields inherited from class ucar.visad.display.ScalarMapAdapter |
|---|
SCALAR_MAP, SCALAR_TYPE |
| Constructor Summary | |
|---|---|
SelectValueScalarMap(RealType realType,
DisplayAdapter display)
Constructs. |
|
| Method Summary | |
|---|---|
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(Real value)
Sets the selection value. |
| 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 |
|---|
public static final String VALUE
| Constructor Detail |
|---|
public SelectValueScalarMap(RealType realType,
DisplayAdapter display)
throws VisADException,
RemoteException
realType - The type of data to be value-selected.display - The adapted, VisAD display for rendering.
VisADException - VisAD failure.
RemoteException - Java RMI failure.| Method Detail |
|---|
public final void setValue(float value)
throws RemoteException,
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.
VisADException - VisAD failure.
RemoteException - Java RMI failure.VALUE
public final void setValue(Real value)
throws UnitException,
RemoteException,
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.
UnitException - The unit of the given value is not convertible
to the unit of the data type.
VisADException - VisAD failure.
RemoteException - Java RMI failure.VALUEpublic final Real getValue()
protected void setControl()
throws VisADException,
RemoteException
ScalarMap. This is a
template method.
setControl in class ScalarMapAdapterVisADException - VisAD failure.
RemoteException - Java RMI failure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||