net.kolls.railworld.edit
Enum EditCanvas.Tool

java.lang.Object
  extended by java.lang.Enum<EditCanvas.Tool>
      extended by net.kolls.railworld.edit.EditCanvas.Tool
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EditCanvas.Tool>
Enclosing class:
EditCanvas

public static enum EditCanvas.Tool
extends java.lang.Enum<EditCanvas.Tool>

The available tools in the edit canvas.


Enum Constant Summary
TOOL_CROSSING
          Crossing (at-grade) with bells
TOOL_CURVE
          Curve
TOOL_EETRACK
          Entry/exit segment
TOOL_ERASE
          Eraser
TOOL_HLUTRACK
          Hidden load/unload track
TOOL_HTRACK
          Hidden track
TOOL_LUTRACK
          Load/unload track
TOOL_SELECT
          Selection
TOOL_TEXT
          Text (label)
TOOL_TRACK
          Straight track
 
Method Summary
static EditCanvas.Tool valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EditCanvas.Tool[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TOOL_SELECT

public static final EditCanvas.Tool TOOL_SELECT
Selection


TOOL_ERASE

public static final EditCanvas.Tool TOOL_ERASE
Eraser


TOOL_TRACK

public static final EditCanvas.Tool TOOL_TRACK
Straight track


TOOL_HTRACK

public static final EditCanvas.Tool TOOL_HTRACK
Hidden track


TOOL_LUTRACK

public static final EditCanvas.Tool TOOL_LUTRACK
Load/unload track


TOOL_HLUTRACK

public static final EditCanvas.Tool TOOL_HLUTRACK
Hidden load/unload track


TOOL_EETRACK

public static final EditCanvas.Tool TOOL_EETRACK
Entry/exit segment


TOOL_TEXT

public static final EditCanvas.Tool TOOL_TEXT
Text (label)


TOOL_CROSSING

public static final EditCanvas.Tool TOOL_CROSSING
Crossing (at-grade) with bells


TOOL_CURVE

public static final EditCanvas.Tool TOOL_CURVE
Curve

Method Detail

values

public static EditCanvas.Tool[] 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 (EditCanvas.Tool c : EditCanvas.Tool.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EditCanvas.Tool 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 name
java.lang.NullPointerException - if the argument is null