Package jmri.jmrit.display.layoutEditor
Enum LayoutTurnout.TurnoutType
- java.lang.Object
-
- java.lang.Enum<LayoutTurnout.TurnoutType>
-
- jmri.jmrit.display.layoutEditor.LayoutTurnout.TurnoutType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LayoutTurnout.TurnoutType>
- Enclosing class:
- LayoutTurnout
public static enum LayoutTurnout.TurnoutType extends java.lang.Enum<LayoutTurnout.TurnoutType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DOUBLE_SLIP
DOUBLE_XOVER
LH_TURNOUT
LH_XOVER
NONE
RH_TURNOUT
RH_XOVER
SINGLE_SLIP
WYE_TURNOUT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LayoutTurnout.TurnoutType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LayoutTurnout.TurnoutType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final LayoutTurnout.TurnoutType NONE
-
RH_TURNOUT
public static final LayoutTurnout.TurnoutType RH_TURNOUT
-
LH_TURNOUT
public static final LayoutTurnout.TurnoutType LH_TURNOUT
-
WYE_TURNOUT
public static final LayoutTurnout.TurnoutType WYE_TURNOUT
-
DOUBLE_XOVER
public static final LayoutTurnout.TurnoutType DOUBLE_XOVER
-
RH_XOVER
public static final LayoutTurnout.TurnoutType RH_XOVER
-
LH_XOVER
public static final LayoutTurnout.TurnoutType LH_XOVER
-
SINGLE_SLIP
public static final LayoutTurnout.TurnoutType SINGLE_SLIP
-
DOUBLE_SLIP
public static final LayoutTurnout.TurnoutType DOUBLE_SLIP
-
-
Method Detail
-
values
public static LayoutTurnout.TurnoutType[] 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 (LayoutTurnout.TurnoutType c : LayoutTurnout.TurnoutType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LayoutTurnout.TurnoutType 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
-
-