Package org.eclipse.gef.handles
Class ResizableHandleKit
- java.lang.Object
-
- org.eclipse.gef.handles.ResizableHandleKit
-
public class ResizableHandleKit extends java.lang.ObjectA set of utility methods to create Handles for the common locations on a figure's bounds.- See Also:
Handle
-
-
Constructor Summary
Constructors Constructor Description ResizableHandleKit()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidaddCornerAndSideHandles(GraphicalEditPart part, java.util.List handles)Fills the given List with handles at each corner and side of a figure.static voidaddCornerAndSideHandles(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 voidaddHandle(GraphicalEditPart part, java.util.List handles, int direction)Adds a single handle in the given direction to the given List.static voidaddHandle(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 DragTrackerstatic voidaddHandles(GraphicalEditPart part, java.util.List handles)Deprecated.static voidaddMoveHandle(GraphicalEditPart f, java.util.List handles)Fills the given List with move borders at each side of a figure.static voidaddMoveHandle(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 HandlemoveHandle(GraphicalEditPart owner)Returns a newMoveHandlewith the given owner.static HandlemoveHandle(GraphicalEditPart owner, DragTracker tracker, Cursor cursor)Returns a newMoveHandlewith the given owner and DragTracker.
-
-
-
Method Detail
-
addHandle
public static void addHandle(GraphicalEditPart part, java.util.List handles, int direction)
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, 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- Parameters:
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 handle
-
addHandles
public static void addHandles(GraphicalEditPart part, java.util.List handles)
Deprecated.Fills the given List with handles at each corner and the north, south, east, and west of the GraphicalEditPart.- Parameters:
part- the owner GraphicalEditPart of the handleshandles- the List to add the handles to
-
addCornerAndSideHandles
public static void addCornerAndSideHandles(GraphicalEditPart part, java.util.List handles)
Fills the given List with handles at each corner and side of a figure.- Parameters:
part- the handles' GraphicalEditParthandles- the List to add the four corner handles to- Since:
- 3.7
-
addCornerAndSideHandles
public 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.- Parameters:
part- the handles' GraphicalEditParthandles- the List to add the four corner handles totracker- the handles' DragTrackercursor- the handles' Cursor- Since:
- 3.7
-
addMoveHandle
public static void addMoveHandle(GraphicalEditPart f, java.util.List handles)
Fills the given List with move borders at each side of a figure.- Parameters:
f- the GraphicalEditPart that is the owner of the handleshandles- the List to add the handles to
-
addMoveHandle
public 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.- Parameters:
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 handle
-
moveHandle
public static Handle moveHandle(GraphicalEditPart owner)
Returns a newMoveHandlewith the given owner.- Parameters:
owner- the GraphicalEditPart that is the owner of the new MoveHandle- Returns:
- the new MoveHandle
-
moveHandle
public static Handle moveHandle(GraphicalEditPart owner, DragTracker tracker, Cursor cursor)
Returns a newMoveHandlewith the given owner and DragTracker.- Parameters:
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- Returns:
- the new MoveHandle
-
-