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

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

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

ArrowDisatance is a typesafe enum class that describes the distance that arrow keys move (full, half, or quarter).


Enum Constant Summary
FULL
          Describes full grid unit motion.
HALF
          Describes half grid unit motion.
QUARTER
          Describes quarter grid unit motion.
 
Method Summary
 boolean isSelected()
           
 void setAlignmentToGrid()
           
static ToolBar.ArrowDistance valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ToolBar.ArrowDistance[] 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

FULL

public static final ToolBar.ArrowDistance FULL
Describes full grid unit motion.


HALF

public static final ToolBar.ArrowDistance HALF
Describes half grid unit motion.


QUARTER

public static final ToolBar.ArrowDistance QUARTER
Describes quarter grid unit motion.

Method Detail

values

public static ToolBar.ArrowDistance[] 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.ArrowDistance c : ToolBar.ArrowDistance.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.ArrowDistance 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

isSelected

public boolean isSelected()

setAlignmentToGrid

public void setAlignmentToGrid()