|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchrriis.uihierarchy.unit.Centimeter
A handler to manipulate a default unit representing a centimeter.
Nested Class Summary | |
static class |
Centimeter.CentimeterUnit
A unit representing a centimeter. |
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 Centimeter.CentimeterUnit |
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 Centimeter.CentimeterUnit |
newInstance()
Create a new instance of this unit. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Centimeter.CentimeterUnit getUnit()
public static Centimeter.CentimeterUnit newInstance()
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 |