|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchrriis.uihierarchy.unit.Unit
A unit, used to perform conversions, mainly from and to pixels.
Method Summary | |
abstract String[] |
getNames()
Get the names representing the unit. |
static Unit |
getUnit(String unitName)
Get a unit registered with the given name. |
static void |
registerUnit(Unit unit)
Register a unit, using the names it defines. |
static void |
registerUnit(Unit unit,
String[] names)
Register a unit, with some names that define it. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public abstract String[] getNames()
public static void registerUnit(Unit unit)
unit
- The unit to register.public static void registerUnit(Unit unit, String[] names)
unit
- The unit to register.names
- The names that identify the unit.public static Unit getUnit(String unitName)
unitName
- A name identifying the unit to get.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |