|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchrriis.uihierarchy.util.UnitParser
A utility class to parse and convert units from their string representations.
Method Summary | |
static double |
doublePixelValue(UIHConfig uihConfig,
String unitValueRepresentation)
Convert a string representation of a value with or without a unit specification, into its pixel double value. |
static int |
intPixelValue(UIHConfig uihConfig,
String unitValueRepresentation)
Convert a string representation of a value with or without a unit specification, into its pixel integer value. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static int intPixelValue(UIHConfig uihConfig, String unitValueRepresentation)
unitValueRepresentation
- The value to convert, eventually defined in
a unit other than pixel.
public static double doublePixelValue(UIHConfig uihConfig, String unitValueRepresentation)
unitValueRepresentation
- The value to convert, eventually defined in
a unit other than pixel.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |