|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sonification.dataimport.visbards_resourcetoolkit.model.UnitManager
public class UnitManager
Field Summary | |
---|---|
static org.gjt.fredgc.unit.Unit |
AU
|
static org.gjt.fredgc.unit.Unit |
KILOMETER
|
static org.gjt.fredgc.unit.Unit |
KM_PER_SECOND
|
static org.gjt.fredgc.unit.Unit |
MILISECOND
|
static org.gjt.fredgc.unit.Unit |
NANOTESLA
|
Constructor Summary | |
---|---|
UnitManager(CoordinateModeManager mgr)
|
Method Summary | |
---|---|
void |
addListener(UnitManagerListener listener)
Registers a listener. |
org.gjt.fredgc.unit.Unit |
getPresentationalUnit(org.gjt.fredgc.unit.Unit from)
This function has been short-circuited to prevent problems with units getting automatically converted. |
org.gjt.fredgc.unit.Unit |
getStandardUnit_Real(org.gjt.fredgc.unit.Unit from)
This function is used to return the preferred/standardized unit for Location, MagField, or Velocity. |
org.gjt.fredgc.unit.Unit |
getStandardUnit(org.gjt.fredgc.unit.Unit from)
This function has been short-circuited to prevent problems with units getting automatically converted. |
void |
modeChanged(int mode)
Indicates that the current mode has changed |
void |
removeListener(UnitManagerListener listener)
Unregisters a listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.gjt.fredgc.unit.Unit KILOMETER
public static final org.gjt.fredgc.unit.Unit MILISECOND
public static final org.gjt.fredgc.unit.Unit AU
public static final org.gjt.fredgc.unit.Unit NANOTESLA
public static final org.gjt.fredgc.unit.Unit KM_PER_SECOND
Constructor Detail |
---|
public UnitManager(CoordinateModeManager mgr)
Method Detail |
---|
public void modeChanged(int mode)
modeChanged
in interface CoordinateModeManagerListener
public org.gjt.fredgc.unit.Unit getStandardUnit(org.gjt.fredgc.unit.Unit from)
public org.gjt.fredgc.unit.Unit getStandardUnit_Real(org.gjt.fredgc.unit.Unit from)
public org.gjt.fredgc.unit.Unit getPresentationalUnit(org.gjt.fredgc.unit.Unit from)
public void addListener(UnitManagerListener listener)
public void removeListener(UnitManagerListener listener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |