chrriis.uihierarchy.unit
Class Centimeter.CentimeterUnit
java.lang.Object
chrriis.uihierarchy.unit.Unit
chrriis.uihierarchy.unit.ScreenUnit
chrriis.uihierarchy.unit.Centimeter.CentimeterUnit
- Enclosing class:
- Centimeter
- public static class Centimeter.CentimeterUnit
- extends chrriis.uihierarchy.unit.ScreenUnit
A unit representing a centimeter.
- Version:
- 1.0 2005.02.01
- Author:
- Christopher Deckers (chrriis@brainlex.com)
Method Summary |
double |
doubleValue(Unit unit,
double value)
Get the double value resulting from the conversion of the value from the specified unit. |
String[] |
getNames()
Get the names representing the unit. |
getNames
public String[] getNames()
- Get the names representing the unit.
- Specified by:
getNames
in class Unit
- Returns:
- An array containing the names.
doubleValue
public double doubleValue(Unit unit,
double value)
- Get the double value resulting from the conversion of the value from the specified unit.
- Parameters:
unit
- The unit from which to convert.value
- The value to convert.
- Returns:
- The result of the conversion.