|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.view.sounding.RealReadout
public class RealReadout
Provides support for readouts of real values.
| Nested Class Summary | |
|---|---|
protected class |
RealReadout.FormatProperty
Provides support for format properties. |
protected class |
RealReadout.NameProperty
Provides support for name properties. |
protected class |
RealReadout.NumericValueProperty
Provides support for numeric value properties. |
protected class |
RealReadout.UnitProperty
Provides support for unit properties. |
| Field Summary | |
|---|---|
static String |
FORMAT
The name of the format property. |
static String |
NAME
The name of the name property. |
static String |
NUMERIC_STRING
The name of the numeric-string property. |
static int |
REAL_UNIT
The indicator for using the unit of the Real. |
static int |
REALTYPE_NAME
The indicator for using the name of the RealType. |
static int |
REALTYPE_UNIT
The indicator for using the unit of the RealType. |
static int |
SPECIFIED_NAME
The indicator for using the client-supplied name. |
static int |
SPECIFIED_UNIT
The indicator for using the unit supplied by the client. |
static String |
UNIT_STRING
The name of the unit-string property. |
| Constructor Summary | |
|---|---|
RealReadout()
Constructs from nothing. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Adds a PropertyChangeListener for a named property. |
String |
getName()
Returns the name of the readout. |
String |
getNumericString()
Returns the numeric string of the readout. |
String |
getUnitString()
Returns the unit-specification of the readout. |
void |
propertyChange(PropertyChangeEvent event)
Handles a change to a property. |
void |
setFormat(NumberFormat format)
Sets the format property. |
void |
setNameUse(int which)
Sets the type of name-use. |
void |
setReal(Real real)
Sets the value of the readout quantity. |
void |
setSpecifiedName(String name)
Sets the client-supplied name for the readout. |
void |
setSpecifiedUnit(String unitString)
Sets the client-supplied unit-specification. |
void |
setUnitUse(int which)
Sets the type of unit-use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int REALTYPE_NAME
public static final int SPECIFIED_NAME
public static final int REAL_UNIT
public static final int REALTYPE_UNIT
public static final int SPECIFIED_UNIT
public static final String NAME
public static final String FORMAT
public static final String NUMERIC_STRING
public static final String UNIT_STRING
| Constructor Detail |
|---|
public RealReadout()
| Method Detail |
|---|
public void setSpecifiedName(String name)
name - The client-supplied name for the readout.public void setNameUse(int which)
which - The type of name-use. One of REALTYPE_NAME or
SPECIFIED_NAME.public void setFormat(NumberFormat format)
format - The new value.
public void setSpecifiedUnit(String unitString)
throws NoSuchUnitException,
ParseException
unitString - The client-supplied unit-specification.
NoSuchUnitException - if the specification can't be decoded.
ParseException - if a parse-error occurs while decoding.public void setUnitUse(int which)
which - The type of unit-use. One of REAL_UNIT,
REALTYPE_UNIT, or SPECIFIED_UNIT.public String getName()
public String getNumericString()
public String getUnitString()
public void addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
propertyName - The name of the property.listener - The PropertyChangeListener to be added.public void setReal(Real real)
real - The new value for the readout quantity.public void propertyChange(PropertyChangeEvent event)
propertyChange in interface PropertyChangeListenerevent - The property change event.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||