Package org.eclipse.gef.handles
Class ResizableHandleKit
java.lang.Object
org.eclipse.gef.handles.ResizableHandleKit
A set of utility methods to create Handles for the common locations on a
 figure's bounds.
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddCornerAndSideHandles(GraphicalEditPart part, List<Handle> handles) Fills the given List with handles at each corner and side of a figure.static voidaddCornerAndSideHandles(GraphicalEditPart part, List<Handle> handles, DragTracker tracker, Cursor cursor) Fills the given List with handles at each corner and side 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 with the given DragTrackerstatic voidaddHandles(GraphicalEditPart part, List<Handle> handles) 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 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 Details- 
addHandleAdds a single handle in the given direction to the given List.- Parameters:
- part- the owner GraphicalEditPart of the handle
- handles- the List to add the handle to
- direction- the integer constant from PositionConstants that refers to the handle direction
 
- 
addHandlepublic 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 with the given DragTracker- Parameters:
- part- the owner GraphicalEditPart of the handle
- handles- the List to add the handle to
- direction- the integer constant from PositionConstants that refers to the handle direction
- tracker- the DragTracker to assign to this handle
- cursor- the Cursor to use when hovering over this handle
 
- 
addHandlesDeprecated.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 handles
- handles- the List to add the handles to
 
- 
addCornerAndSideHandlesFills the given List with handles at each corner and side of a figure.- Parameters:
- part- the handles' GraphicalEditPart
- handles- the List to add the four corner handles to
- Since:
- 3.7
 
- 
addCornerAndSideHandlespublic static void addCornerAndSideHandles(GraphicalEditPart part, List<Handle> handles, DragTracker tracker, Cursor cursor) Fills the given List with handles at each corner and side of a figure.- Parameters:
- part- the handles' GraphicalEditPart
- handles- the List to add the four corner handles to
- tracker- the handles' DragTracker
- cursor- the handles' Cursor
- Since:
- 3.7
 
- 
addMoveHandleFills the given List with move borders at each side of a figure.- Parameters:
- f- the GraphicalEditPart that is the owner of the handles
- handles- the List to add the handles to
 
- 
addMoveHandlepublic static void addMoveHandle(GraphicalEditPart f, List<Handle> handles, DragTracker tracker, Cursor cursor) Fills the given List with move borders with the given DragTracker at each side of a figure.- Parameters:
- f- the GraphicalEditPart thatis the owner of the handles
- handles- the List to add the handles to
- tracker- the DragTracker to assign to this handle
- cursor- the Cursor to use when hovering over this handle
 
- 
moveHandleReturns a newMoveHandlewith the given owner.- Parameters:
- owner- the GraphicalEditPart that is the owner of the new MoveHandle
- Returns:
- the new MoveHandle
 
- 
moveHandleReturns a newMoveHandlewith the given owner and DragTracker.- Parameters:
- owner- the GraphicalEditPart that is the owner of the new MoveHandle
- tracker- the DragTracker to assign to this handle
- cursor- the Cursor to use when hovering over this handle
- Returns:
- the new MoveHandle
 
 
-