|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.handles.NonResizableHandleKit
A set of utility methods to create Handles for NonResizable Figures.
Handle
Constructor Summary | |
NonResizableHandleKit()
|
Method Summary | |
static void |
addCornerHandles(GraphicalEditPart part,
java.util.List handles)
Fills the given List with handles at each corner of a figure. |
static void |
addCornerHandles(GraphicalEditPart part,
java.util.List handles,
DragTracker tracker,
org.eclipse.swt.graphics.Cursor cursor)
Fills the given List with handles at each corner 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,
org.eclipse.swt.graphics.Cursor cursor)
Adds a single handle in the given direction to the given List. |
static void |
addHandles(GraphicalEditPart part,
java.util.List handles)
Fills the given List with handles at each corner. |
static void |
addHandles(GraphicalEditPart part,
java.util.List handles,
DragTracker tracker,
org.eclipse.swt.graphics.Cursor cursor)
Fills the given List with handles at each corner. |
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,
org.eclipse.swt.graphics.Cursor cursor)
Fills the given List with move borders 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,
org.eclipse.swt.graphics.Cursor cursor)
Returns a new MoveHandle with the given owner. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NonResizableHandleKit()
Method Detail |
public static void addCornerHandles(GraphicalEditPart part, java.util.List handles, DragTracker tracker, org.eclipse.swt.graphics.Cursor cursor)
part
- the handles' GraphicalEditParthandles
- the List to add the four corner handles totracker
- the handles' DragTrackercursor
- the handles' Cursorpublic static void addCornerHandles(GraphicalEditPart part, java.util.List handles)
part
- the handles' GraphicalEditParthandles
- the List to add the four corner handles topublic 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, org.eclipse.swt.graphics.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 handles' GraphicalEditParthandles
- the List to add the handles topublic static void addHandles(GraphicalEditPart part, java.util.List handles, DragTracker tracker, org.eclipse.swt.graphics.Cursor cursor)
part
- the handles' GraphicalEditParthandles
- the List to add the handles totracker
- the handles' DragTrackercursor
- the handles' Cursorpublic static void addMoveHandle(GraphicalEditPart f, java.util.List handles)
f
- the handles' GraphicalEditParthandles
- the List to add the handles topublic static void addMoveHandle(GraphicalEditPart f, java.util.List handles, DragTracker tracker, org.eclipse.swt.graphics.Cursor cursor)
tracker
- the DragTracker to assign to this handlef
- the handles' GraphicalEditParthandles
- 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, org.eclipse.swt.graphics.Cursor cursor)
MoveHandle
with the given owner.
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |