Eclipse GEF
3.0

org.eclipse.gef.handles
Class ResizeHandle

java.lang.Object
  extended byFigure
      extended byorg.eclipse.gef.handles.AbstractHandle
          extended byorg.eclipse.gef.handles.SquareHandle
              extended byorg.eclipse.gef.handles.ResizeHandle
All Implemented Interfaces:
Handle

public class ResizeHandle
extends SquareHandle

A Handle used to resize a GraphicalEditPart.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.eclipse.gef.handles.SquareHandle
DEFAULT_HANDLE_SIZE
 
Constructor Summary
ResizeHandle(GraphicalEditPart owner, int direction)
          Creates a new ResizeHandle for the given GraphicalEditPart.
ResizeHandle(GraphicalEditPart owner, Locator loc, Cursor c)
          Creates a new ResizeHandle for the given GraphicalEditPart.
 
Method Summary
protected  DragTracker createDragTracker()
          Returns null for the DragTracker.
 
Methods inherited from class org.eclipse.gef.handles.SquareHandle
getBorderColor, getFillColor, init, isPrimary, paintFigure
 
Methods inherited from class org.eclipse.gef.handles.AbstractHandle
addNotify, ancestorAdded, ancestorMoved, ancestorRemoved, getAccessibleLocation, getDragCursor, getDragTracker, getLocator, getOwner, getOwnerFigure, removeNotify, setDragCursor, setDragTracker, setLocator, setOwner, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResizeHandle

public ResizeHandle(GraphicalEditPart owner,
                    int direction)
Creates a new ResizeHandle for the given GraphicalEditPart. direction is the relative direction from the center of the owner figure. For example, SOUTH_EAST would place the handle in the lower-right corner of its owner figure. These direction constants can be found in PositionConstants.

Parameters:
owner - owner of the ResizeHandle
direction - relative direction from the center of the owner figure

ResizeHandle

public ResizeHandle(GraphicalEditPart owner,
                    Locator loc,
                    Cursor c)
Creates a new ResizeHandle for the given GraphicalEditPart.

See Also:
SquareHandle.SquareHandle(GraphicalEditPart, Locator, Cursor)
Method Detail

createDragTracker

protected DragTracker createDragTracker()
Returns null for the DragTracker.

Specified by:
createDragTracker in class AbstractHandle
Returns:
returns null

Eclipse GEF
3.0

Copyright (c) IBM Corp. and others 2000, 2004. All Rights Reserved.