edu.sc.seis.fissuresUtil.display
Class UnitDisplayUtil
java.lang.Object
edu.sc.seis.fissuresUtil.display.UnitDisplayUtil
public class UnitDisplayUtil
- extends java.lang.Object
|
Field Summary |
static java.lang.String |
mu
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mu
public static final java.lang.String mu
- See Also:
- Constant Field Values
UnitDisplayUtil
public UnitDisplayUtil()
getBestForDisplay
public static QuantityImpl getBestForDisplay(QuantityImpl quantity)
getBestForDisplay
public static UnitRangeImpl getBestForDisplay(UnitRangeImpl inRange)
getRealWorldUnitRange
public static UnitRangeImpl getRealWorldUnitRange(UnitRangeImpl ur,
DataSetSeismogram seismo)
- calculates a new UnitRangeImpl using the response of the given
seismogram. If seis does not have a response, then the input amp is used.
getNameForUnit
public static java.lang.String getNameForUnit(UnitImpl unit)
- tries to come up with better names for some standard units than the
auto-generated versions.
formatQuantityImpl
public static java.lang.String formatQuantityImpl(Quantity quantity)
formatQuantityImpl
public static java.lang.String formatQuantityImpl(Quantity quantity,
java.text.NumberFormat format)