public static enum Gauge.NumberFormat extends java.lang.Enum<Gauge.NumberFormat>
Enum Constant and Description |
---|
AUTO |
FRACTIONAL |
PERCENTAGE |
SCIENTIFIC |
STANDARD |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(java.lang.Number NUMBER) |
static Gauge.NumberFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Gauge.NumberFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Gauge.NumberFormat AUTO
public static final Gauge.NumberFormat STANDARD
public static final Gauge.NumberFormat FRACTIONAL
public static final Gauge.NumberFormat SCIENTIFIC
public static final Gauge.NumberFormat PERCENTAGE
public static Gauge.NumberFormat[] values()
for (Gauge.NumberFormat c : Gauge.NumberFormat.values()) System.out.println(c);
public static Gauge.NumberFormat valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String format(java.lang.Number NUMBER)