protected class RealReadout.UnitProperty extends NonVetoableProperty
Constructor and Description |
---|
UnitProperty()
Constructs from nothing.
|
Modifier and Type | Method and Description |
---|---|
visad.Unit |
getUnit()
Returns the unit.
|
java.lang.String |
getUnitString()
Returns the unit-specification.
|
void |
setSpecifiedUnit(java.lang.String specifiedUnitString)
Sets the client-supplied unit-specification.
|
void |
setUnitUse(int which)
Sets the type of unit-use.
|
void |
setValue(visad.Real real)
Sets the value from a Real.
|
addVetoableChangeListener, isVetoable, removeVetoableChangeListener, setValue, setValueAndNotifyListeners
addPropertyChangeListener, clearValue, getName, getSourceBean, getValue, isReporting, notifyListeners, removePropertyChangeListener, setCurrentValue, setReporting
public void setSpecifiedUnit(java.lang.String specifiedUnitString) throws visad.data.units.NoSuchUnitException, visad.data.units.ParseException
specifiedUnitString
- The client-supplied unit-specification.visad.data.units.NoSuchUnitException
- No such unit.visad.data.units.ParseException
- Couldn't decode specification.public void setUnitUse(int which)
which
- The type of unit-use. One of REAL_UNIT,
REALTYPE_UNIT, or SPECIFIED_UNIT.public void setValue(visad.Real real)
real
- The Real.public java.lang.String getUnitString()
public visad.Unit getUnit()