|
Eclipse GEF 3.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.handles.ResizableHandleKit
A set of utility methods to create Handles for the common locations on a figure's bounds.
Handle
Constructor Summary | |
ResizableHandleKit()
|
Method Summary | |
static void |
addHandle(GraphicalEditPart part,
List handles,
int direction)
Adds a single handle in the given direction to the given List. |
static void |
addHandle(GraphicalEditPart part,
List handles,
int direction,
DragTracker tracker,
Cursor cursor)
Adds a single handle in the given direction to the given List with the given DragTracker |
static void |
addHandles(GraphicalEditPart part,
List handles)
Fills the given List with handles at each corner and the north, south, east, and west of the GraphicalEditPart. |
static void |
addMoveHandle(GraphicalEditPart f,
List handles)
Fills the given List with move borders at each side of a figure. |
static void |
addMoveHandle(GraphicalEditPart f,
List handles,
DragTracker tracker,
Cursor cursor)
Fills the given List with move borders with the given DragTracker at each side of a figure. |
static Handle |
moveHandle(GraphicalEditPart owner)
Returns a new MoveHandle with the given owner. |
static Handle |
moveHandle(GraphicalEditPart owner,
DragTracker tracker,
Cursor cursor)
Returns a new MoveHandle with the given owner and DragTracker. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResizableHandleKit()
Method Detail |
public static void addHandle(GraphicalEditPart part, List handles, int direction)
part
- the owner GraphicalEditPart of the handlehandles
- the List to add the handle todirection
- the integer constant from PositionConstants that refers to the handle
directionpublic static void addHandle(GraphicalEditPart part, List handles, int direction, DragTracker tracker, Cursor cursor)
tracker
- the DragTracker to assign to this handlepart
- the owner GraphicalEditPart of the handlehandles
- the List to add the handle todirection
- the integer constant from PositionConstants that refers to the handle
directioncursor
- the Cursor to use when hovering over this handlepublic static void addHandles(GraphicalEditPart part, List handles)
part
- the owner GraphicalEditPart of the handleshandles
- the List to add the handles topublic static void addMoveHandle(GraphicalEditPart f, List handles)
f
- the GraphicalEditPart thatis the owner of the handleshandles
- the List to add the handles topublic static void addMoveHandle(GraphicalEditPart f, List handles, DragTracker tracker, Cursor cursor)
tracker
- the DragTracker to assign to this handlef
- the GraphicalEditPart thatis the owner of the handleshandles
- the List to add the handles tocursor
- the Cursor to use when hovering over this handlepublic static Handle moveHandle(GraphicalEditPart owner)
MoveHandle
with the given owner.
owner
- the GraphicalEditPart that is the owner of the new MoveHandle
public static Handle moveHandle(GraphicalEditPart owner, DragTracker tracker, Cursor cursor)
MoveHandle
with the given owner and DragTracker.
tracker
- the DragTracker to assign to this handleowner
- the GraphicalEditPart that is the owner of the new MoveHandlecursor
- the Cursor to use when hovering over this handle
|
Eclipse GEF 3.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |