|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.units.display.DefaultUnitRenderer
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static String |
defaultMeasurementSystem
|
static String |
DISPLAY_UNITS_PREFERENCE
|
static String |
DISPLAY_UNITS_PREFERENCE_NODE
|
private int |
displayDigits
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
Constructor Summary | |
DefaultUnitRenderer()
|
Method Summary | |
int |
getDisplayDigits()
Gets the value of the attribute: displayDigits. |
static String |
getDisplayUnitsPref()
Returns the preferred measurement system (units) for displaying numerical values from user preferences Supported API: false |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(DefaultUnitRenderer thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
String |
render(Unit unit,
DefaultUnitDisplayInfo displayInfo)
Supported API: false |
String |
renderUnit(Unit unit,
DefaultUnitDisplayInfo displayInfo)
Supported API: false |
String |
renderValue(Unit unit,
DefaultUnitDisplayInfo displayInfo)
Supported API: false |
void |
setDisplayDigits(int a_DisplayDigits)
Sets the value of the attribute: displayDigits. |
static void |
setDisplayUnitsPref(String value)
Sets the preferred measurement system (units) for displaying numerical values in user preferences Supported API: false |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private int displayDigits
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final String defaultMeasurementSystem
public static final String DISPLAY_UNITS_PREFERENCE
public static final String DISPLAY_UNITS_PREFERENCE_NODE
Constructor Detail |
public DefaultUnitRenderer()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(DefaultUnitRenderer thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public int getDisplayDigits()
public void setDisplayDigits(int a_DisplayDigits) throws WTPropertyVetoException
a_DisplayDigits
-
WTPropertyVetoException
public String renderValue(Unit unit, DefaultUnitDisplayInfo displayInfo) throws IncompatibleUnitsException, UnitFormatException
unit
- displayInfo
-
IncompatibleUnitsException
UnitFormatException
public String renderUnit(Unit unit, DefaultUnitDisplayInfo displayInfo) throws IncompatibleUnitsException, UnitFormatException
unit
- displayInfo
-
IncompatibleUnitsException
UnitFormatException
public String render(Unit unit, DefaultUnitDisplayInfo displayInfo) throws IncompatibleUnitsException, UnitFormatException
unit
- displayInfo
-
IncompatibleUnitsException
UnitFormatException
public static String getDisplayUnitsPref()
public static void setDisplayUnitsPref(String value) throws WTException
value
- - Name of preferred measurement system. For example, "SI"
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |