|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchrriis.uihierarchy.unit.Unit
chrriis.uihierarchy.unit.Pixel.PixelUnit
A unit representing a pixel.
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. |
int |
intValue(Unit unit,
double value)
Get the int value resulting from the conversion of the value from the specified unit. |
Methods inherited from class chrriis.uihierarchy.unit.Unit |
getUnit, registerUnit, registerUnit |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public int intValue(Unit unit, double value)
unit
- The unit from which to convert.value
- The value to convert.
public double doubleValue(Unit unit, double value)
unit
- The unit from which to convert.value
- The value to convert.
public String[] getNames()
getNames
in class Unit
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |