org.tigris.gef.presentation
Class Handle

java.lang.Object
  extended by org.tigris.gef.presentation.Handle

public class Handle
extends java.lang.Object

This class stores the index of the handle that the user is dragging. I originally used a simple int, but some dragHandle() methods need to change the index because new handles can be added during a drag.

See Also:
FigPoly.moveVertex(org.tigris.gef.presentation.Handle, int, int, boolean)

Field Summary
 java.awt.Cursor cursor
          Mouse cursor Cursor while hovering or dragging
static int EAST
          The handle in the east edge of a FigNode
 int index
          Index of the handle on some Fig that was clicked on.
 java.lang.String instructions
          Instructions to be shown when the user's mouse is hovering over or is dragging this handle
static int NORTH
          The handle in the north edge of a FigNode
static int NORTHEAST
          The handle in the northeast corner of a FigNode
static int NORTHWEST
          The handle in the northwest corner of a FigNode
static int SOUTH
          The handle in the south edge of a FigNode
static int SOUTHEAST
          The handle in the southeast corner of a FigNode
static int SOUTHWEST
          The handle in the southwest corner of a FigNode
static int WEST
          The handle in the west edge of a FigNode
 
Constructor Summary
Handle(int ind)
          Make a new Handle with the given handle index.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NORTHWEST

public static final int NORTHWEST
The handle in the northwest corner of a FigNode

See Also:
Constant Field Values

NORTH

public static final int NORTH
The handle in the north edge of a FigNode

See Also:
Constant Field Values

NORTHEAST

public static final int NORTHEAST
The handle in the northeast corner of a FigNode

See Also:
Constant Field Values

WEST

public static final int WEST
The handle in the west edge of a FigNode

See Also:
Constant Field Values

EAST

public static final int EAST
The handle in the east edge of a FigNode

See Also:
Constant Field Values

SOUTHWEST

public static final int SOUTHWEST
The handle in the southwest corner of a FigNode

See Also:
Constant Field Values

SOUTH

public static final int SOUTH
The handle in the south edge of a FigNode

See Also:
Constant Field Values

SOUTHEAST

public static final int SOUTHEAST
The handle in the southeast corner of a FigNode

See Also:
Constant Field Values

index

public int index
Index of the handle on some Fig that was clicked on.


instructions

public java.lang.String instructions
Instructions to be shown when the user's mouse is hovering over or is dragging this handle


cursor

public java.awt.Cursor cursor
Mouse cursor Cursor while hovering or dragging

Constructor Detail

Handle

public Handle(int ind)
Make a new Handle with the given handle index.