Class AbstractHandle

java.lang.Object
org.eclipse.draw2d.Figure
org.eclipse.gef.handles.AbstractHandle
All Implemented Interfaces:
AncestorListener, IFigure, Handle
Direct Known Subclasses:
MoveHandle, SquareHandle

public abstract class AbstractHandle extends Figure implements Handle, AncestorListener
Base implementation for handles. This class keeps track of the typical data needed by a handle, such as a drag tracker, a locator to place the handle, a cursor, and the editpart to which the handle belongs. AbstractHandle will add an AncestorListener to the owner's figure, and will automatically revalidate this handle whenever the owner's figure moves.
  • Constructor Details

    • AbstractHandle

      public AbstractHandle()
      Null constructor
    • AbstractHandle

      public AbstractHandle(GraphicalEditPart owner, Locator loc)
      Creates a handle for the given GraphicalEditPart using the given Locator.
      Parameters:
      owner - The editpart which provided this handle
      loc - The locator to position the handle
    • AbstractHandle

      public AbstractHandle(GraphicalEditPart owner, Locator loc, Cursor c)
      Creates a handle for the given GraphicalEditPart using the given Locator and Cursor.
      Parameters:
      owner - The editpart which provided this handle
      loc - The locator to position the handle
      c - The cursor to display when the mouse is over the handle
  • Method Details