|
GEF (MVC) 3.9.0.201308190730 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.handles.ResizableHandleKit
public class 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 |
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. |
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, 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 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
|
GEF (MVC) 3.9.0.201308190730 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |