Package jmri.jmrit.swing.meter
Enum MeterFrame.Unit
- java.lang.Object
-
- java.lang.Enum<MeterFrame.Unit>
-
- jmri.jmrit.swing.meter.MeterFrame.Unit
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MeterFrame.Unit>
- Enclosing class:
- MeterFrame
public static enum MeterFrame.Unit extends java.lang.Enum<MeterFrame.Unit>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Ampere
KiloAmpere
KiloVolt
MicroAmpere
MicroVolt
MilliAmpere
MilliVolt
Percent
Volt
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MeterFrame.Unit
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MeterFrame.Unit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Percent
public static final MeterFrame.Unit Percent
-
MicroVolt
public static final MeterFrame.Unit MicroVolt
-
MilliVolt
public static final MeterFrame.Unit MilliVolt
-
Volt
public static final MeterFrame.Unit Volt
-
KiloVolt
public static final MeterFrame.Unit KiloVolt
-
MicroAmpere
public static final MeterFrame.Unit MicroAmpere
-
MilliAmpere
public static final MeterFrame.Unit MilliAmpere
-
Ampere
public static final MeterFrame.Unit Ampere
-
KiloAmpere
public static final MeterFrame.Unit KiloAmpere
-
-
Method Detail
-
values
public static MeterFrame.Unit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MeterFrame.Unit c : MeterFrame.Unit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MeterFrame.Unit valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-