public class UnitsType extends NamedType
| Modifier and Type | Field and Description |
|---|---|
static int |
UNITS_ENGLISH
The constant for English units.
|
static int |
UNITS_SI
The constant for SI units.
|
_description, _index, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT| Constructor and Description |
|---|
UnitsType()
Constructs the default UnitsType as a default NamedType with the units system
set as "SI Units" and the units type set as UNITS_SI.
|
UnitsType(int type,
java.lang.String system)
Constructs a default UnitsType with the system set to the String argument system,
and the type set to the int argument type.
|
UnitsType(java.lang.String system,
int type)
Constructs a default UnitsType with the system set to the String argument system,
and the type set to the int argument type.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getUnitsSystem()
Returns a String describing the current units system.
|
int |
getUnitsType()
Returns an int identifying the current units type.
|
void |
setUnitsSystem(java.lang.String system)
Sets the units system to the String argument.
|
void |
setUnitsType(int type)
Sets the units type to the int argument.
|
addModifiableListener, clone, compareTo, getDescription, getDisplayName, getFieldObject, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, removeModifiableListener, rename, set, setDescription, setFieldObject, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, toString, update, useRecursiveModifiedTestpublic static final int UNITS_ENGLISH
public static final int UNITS_SI
public UnitsType()
public UnitsType(java.lang.String system,
int type)
public UnitsType(int type,
java.lang.String system)
public void setUnitsSystem(java.lang.String system)
public java.lang.String getUnitsSystem()
public void setUnitsType(int type)
public int getUnitsType()