com.sun.electric.tool.user.ui
Enum ToolBar.CursorMode

java.lang.Object
  extended by java.lang.Enum<ToolBar.CursorMode>
      extended by com.sun.electric.tool.user.ui.ToolBar.CursorMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ToolBar.CursorMode>
Enclosing class:
ToolBar

public static enum ToolBar.CursorMode
extends java.lang.Enum<ToolBar.CursorMode>

CursorMode is a typesafe enum class that describes the current editing mode (select, zoom, etc).


Enum Constant Summary
CLICKZOOMWIRE
          Describes ClickZoomWire mode (does everything).
MEASURE
          Describes Measure mode.
OUTLINE
          Describes Outline edit mode.
PAN
          Describes Panning mode (move window contents).
ZOOM
          Describes Zoom mode (scale window contents).
 
Method Summary
static ToolBar.CursorMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ToolBar.CursorMode[] 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

CLICKZOOMWIRE

public static final ToolBar.CursorMode CLICKZOOMWIRE
Describes ClickZoomWire mode (does everything).


PAN

public static final ToolBar.CursorMode PAN
Describes Panning mode (move window contents).


ZOOM

public static final ToolBar.CursorMode ZOOM
Describes Zoom mode (scale window contents).


OUTLINE

public static final ToolBar.CursorMode OUTLINE
Describes Outline edit mode.


MEASURE

public static final ToolBar.CursorMode MEASURE
Describes Measure mode.

Method Detail

values

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

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

valueOf

public static ToolBar.CursorMode 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