public class ResizableHandleKit
extends java.lang.Object
Handle
Constructor and Description |
---|
ResizableHandleKit() |
Modifier and Type | Method and Description |
---|---|
static void |
addCornerAndSideHandles(GraphicalEditPart part,
java.util.List handles)
Fills the given List with handles at each corner and side of a figure.
|
static void |
addCornerAndSideHandles(GraphicalEditPart part,
java.util.List handles,
DragTracker tracker,
Cursor cursor)
Fills the given List with handles at each corner and side of a figure.
|
static void |
addHandle(GraphicalEditPart part,
java.util.List handles,
int direction)
Adds a single handle in the given direction to the given List.
|
static void |
addHandle(GraphicalEditPart part,
java.util.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,
java.util.List handles)
Deprecated.
|
static void |
addMoveHandle(GraphicalEditPart f,
java.util.List handles)
Fills the given List with move borders at each side of a figure.
|
static void |
addMoveHandle(GraphicalEditPart f,
java.util.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. |
public static void addHandle(GraphicalEditPart part, java.util.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, java.util.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, java.util.List handles)
part
- the owner GraphicalEditPart of the handleshandles
- the List to add the handles topublic static void addCornerAndSideHandles(GraphicalEditPart part, java.util.List handles)
part
- the handles' GraphicalEditParthandles
- the List to add the four corner handles topublic static void addCornerAndSideHandles(GraphicalEditPart part, java.util.List handles, DragTracker tracker, Cursor cursor)
part
- the handles' GraphicalEditParthandles
- the List to add the four corner handles totracker
- the handles' DragTrackercursor
- the handles' Cursorpublic static void addMoveHandle(GraphicalEditPart f, java.util.List handles)
f
- the GraphicalEditPart that is the owner of the handleshandles
- the List to add the handles topublic static void addMoveHandle(GraphicalEditPart f, java.util.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 MoveHandlepublic 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 handleCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.