|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectchrriis.uihierarchy.unit.DluY
A handler to manipulate a default unit representing a dialog unit on the vertical axis.
| Nested Class Summary | |
static class |
DluY.DluYUnit
A unit representing a dialog unit on the vertical axis. |
| Method Summary | |
static double |
doubleValue(String unitValue)
Parse a value along with its unit from a String representation, and convert it to this unit. |
static double |
doubleValue(String unitName,
double value)
Get the double value resulting from the conversion of the value from the specified unit. |
static double |
doubleValue(Unit unit,
double value)
Get the double value resulting from the conversion of the value from the specified unit. |
static DluY.DluYUnit |
getUnit()
Get the default unit. |
static int |
intValue(String unitValue)
Parse a value along with its unit from a String representation, and convert it to this unit. |
static DluY.DluYUnit |
newInstance(Font referenceFont)
Create a new instance of this unit, based on the given font. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static DluY.DluYUnit getUnit()
public static DluY.DluYUnit newInstance(Font referenceFont)
referenceFont - The font to use as a reference.
public static double doubleValue(String unitName,
double value)
unitName - A name identifying the unit from which to convert.value - The value to convert.
public static double doubleValue(Unit unit,
double value)
unit - The unit from which to convert.value - The value to convert.
public static int intValue(String unitValue)
unitValue - The value with a unit in its String
representation. If the unit is not specified, then assume it is Pixel.
public static double doubleValue(String unitValue)
unitValue - The value with a unit in its String
representation. If the unit is not specified, then assume it is Pixel.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||