Package org.eclipse.gef.handles
Class NonResizableHandleKit
java.lang.Object
org.eclipse.gef.handles.NonResizableHandleKit
A set of utility methods to create Handles for NonResizable Figures.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddCornerHandles(GraphicalEditPart part, List<Handle> handles) Fills the given List with handles at each corner of a figure.static voidaddCornerHandles(GraphicalEditPart part, List<Handle> handles, DragTracker tracker, Cursor cursor) Fills the given List with handles at each corner of a figure.static voidaddHandle(GraphicalEditPart part, List<Handle> handles, int direction) Adds a single handle in the given direction to the given List.static voidaddHandle(GraphicalEditPart part, List<Handle> handles, int direction, DragTracker tracker, Cursor cursor) Adds a single handle in the given direction to the given List.static voidaddHandles(GraphicalEditPart part, List<Handle> handles) Deprecated.static voidaddHandles(GraphicalEditPart part, List<Handle> handles, DragTracker tracker, Cursor cursor) Deprecated.static voidaddMoveHandle(GraphicalEditPart f, List<Handle> handles) Fills the given List with move borders at each side of a figure.static voidaddMoveHandle(GraphicalEditPart f, List<Handle> handles, DragTracker tracker, Cursor cursor) Fills the given List with move borders at each side of a figure.static HandlemoveHandle(GraphicalEditPart owner) Returns a newMoveHandlewith the given owner.static HandlemoveHandle(GraphicalEditPart owner, DragTracker tracker, Cursor cursor) Returns a newMoveHandlewith the given owner.
-
Method Details
-
addCornerHandles
public static void addCornerHandles(GraphicalEditPart part, List<Handle> handles, DragTracker tracker, Cursor cursor) Fills the given List with handles at each corner of a figure.- Parameters:
part- the handles' GraphicalEditParthandles- the List to add the four corner handles totracker- the handles' DragTrackercursor- the handles' Cursor
-
addCornerHandles
Fills the given List with handles at each corner of a figure.- Parameters:
part- the handles' GraphicalEditParthandles- the List to add the four corner handles to
-
addHandle
Adds a single handle in the given direction to the given List.- Parameters:
part- the owner GraphicalEditPart of the handlehandles- the List to add the handle todirection- the integer constant from PositionConstants that refers to the handle direction
-
addHandle
public static void addHandle(GraphicalEditPart part, List<Handle> handles, int direction, DragTracker tracker, Cursor cursor) Adds a single handle in the given direction to the given List.- Parameters:
part- the owner GraphicalEditPart of the handlehandles- the List to add the handle todirection- the integer constant from PositionConstants that refers to the handle directiontracker- the DragTracker to assign to this handlecursor- the Cursor to use when hovering over this handle
-
addHandles
Deprecated.Fills the given List with handles at each corner.- Parameters:
part- the handles' GraphicalEditParthandles- the List to add the handles to
-
addHandles
@Deprecated public static void addHandles(GraphicalEditPart part, List<Handle> handles, DragTracker tracker, Cursor cursor) Deprecated.Fills the given List with handles at each corner.- Parameters:
part- the handles' GraphicalEditParthandles- the List to add the handles totracker- the handles' DragTrackercursor- the handles' Cursor
-
addMoveHandle
Fills the given List with move borders at each side of a figure.- Parameters:
f- the handles' GraphicalEditParthandles- the List to add the handles to
-
addMoveHandle
public static void addMoveHandle(GraphicalEditPart f, List<Handle> handles, DragTracker tracker, Cursor cursor) Fills the given List with move borders at each side of a figure.- Parameters:
f- the handles' GraphicalEditParthandles- the List to add the handles totracker- the DragTracker to assign to this handlecursor- the Cursor to use when hovering over this handle
-
moveHandle
Returns a newMoveHandlewith the given owner.- Parameters:
owner- the GraphicalEditPart that is the owner of the new MoveHandle- Returns:
- the new MoveHandle
-
moveHandle
Returns a newMoveHandlewith the given owner.- Parameters:
owner- the GraphicalEditPart that is the owner of the new MoveHandletracker- the DragTracker to assign to this handlecursor- the Cursor to use when hovering over this handle- Returns:
- the new MoveHandle
-