public class TLcdFrequencyUnit extends Object
Modifier and Type | Field and Description |
---|---|
static TLcdFrequencyUnit |
GHZ_UNIT
GigaHertz.
|
static TLcdFrequencyUnit |
HZ_UNIT
Hertz.
|
static TLcdFrequencyUnit |
KHZ_UNIT
KiloHertz.
|
static TLcdFrequencyUnit |
MHZ_UNIT
MegaHertz.
|
Modifier and Type | Method and Description |
---|---|
static TLcdFrequencyUnit[] |
getAllFrequencyUnits()
Returns all
TLcdFrequencyUnit objects to consider in a JVM session. |
double |
getToHertzFactor()
Returns the factor to apply to convert a frequency expressed in the
TLcdFrequencyUnit
into a frequency in hertz. |
String |
getUnitName()
Returns the name of the
TLcdFrequencyUnit (e.g. |
String |
getUnitShortName()
Returns the short name of the
TLcdFrequencyUnit (e.g. |
static void |
setAllFrequencyUnits(TLcdFrequencyUnit[] aAllFrequencyUnitArray)
Sets statically all
TLcdFrequencyUnit objects to consider in a JVM session. |
String |
toString()
Returns the unit name.
|
public static final TLcdFrequencyUnit GHZ_UNIT
public static final TLcdFrequencyUnit MHZ_UNIT
public static final TLcdFrequencyUnit KHZ_UNIT
public static final TLcdFrequencyUnit HZ_UNIT
public String getUnitName()
TLcdFrequencyUnit
(e.g. Hertz, Kilohertz, etc ...).TLcdFrequencyUnit
(e.g. Hertz, Kilohertz, etc ...)public String getUnitShortName()
TLcdFrequencyUnit
(e.g. Hz, KHz, etc ...).TLcdFrequencyUnit
(e.g. Hz, KHz, etc ...)public double getToHertzFactor()
TLcdFrequencyUnit
into a frequency in hertz.TLcdFrequencyUnit
into a frequency in hertzpublic static TLcdFrequencyUnit[] getAllFrequencyUnits()
TLcdFrequencyUnit
objects to consider in a JVM session.TLcdFrequencyUnit
objects to consider in a JVM sessionpublic static void setAllFrequencyUnits(TLcdFrequencyUnit[] aAllFrequencyUnitArray)
TLcdFrequencyUnit
objects to consider in a JVM session.
Typically, this method should be called in the main of the application.aAllFrequencyUnitArray
- the frequency units to consider in a JVM session