public class UnitDisplayUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
mu |
Constructor and Description |
---|
UnitDisplayUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatQuantityImpl(Quantity quantity) |
static java.lang.String |
formatQuantityImpl(Quantity quantity,
java.text.NumberFormat format) |
static java.lang.String |
formatQuantityImpl(Quantity quantity,
java.text.NumberFormat format,
UnitImpl preferredUnit) |
static QuantityImpl |
getBestForDisplay(QuantityImpl quantity) |
static UnitRangeImpl |
getBestForDisplay(UnitRangeImpl inRange) |
static java.lang.String |
getNameForUnit(UnitImpl unit)
tries to come up with better names for some standard units than the
auto-generated versions.
|
static UnitRangeImpl |
getRealWorldUnitRange(UnitRangeImpl ur,
DataSetSeismogram seismo)
calculates a new UnitRangeImpl using the response of the given
seismogram.
|
public static final java.lang.String mu
public static QuantityImpl getBestForDisplay(QuantityImpl quantity)
public static UnitRangeImpl getBestForDisplay(UnitRangeImpl inRange)
public static UnitRangeImpl getRealWorldUnitRange(UnitRangeImpl ur, DataSetSeismogram seismo)
public static java.lang.String getNameForUnit(UnitImpl unit)
public static java.lang.String formatQuantityImpl(Quantity quantity)
public static java.lang.String formatQuantityImpl(Quantity quantity, java.text.NumberFormat format, UnitImpl preferredUnit)
public static java.lang.String formatQuantityImpl(Quantity quantity, java.text.NumberFormat format)