Package org.eclipse.gef.handles
Class MoveHandleLocator
java.lang.Object
org.eclipse.gef.handles.MoveHandleLocator
- All Implemented Interfaces:
Locator
A Locator used to place
MoveHandle
s. By default, a MoveHandle's
bounds are equal to its owner figure's bounds, expanded by the handle's
Insets
.-
Constructor Summary
ConstructorsConstructorDescriptionMoveHandleLocator
(IFigure ref) Creates a new MoveHandleLocator and sets its reference figure toref
. -
Method Summary
Modifier and TypeMethodDescriptionprotected IFigure
Returns the reference figure for this locator.void
Sets the handle's bounds to that of its owner figure's bounds, expanded by the handle's Insets.void
setReference
(IFigure follow) Sets the reference figure.
-
Constructor Details
-
MoveHandleLocator
Creates a new MoveHandleLocator and sets its reference figure toref
. The reference figure should be the handle's owner figure.- Parameters:
ref
- the handle's owner
-
-
Method Details
-
getReference
Returns the reference figure for this locator.- Returns:
- the handle's owner
-
relocate
Sets the handle's bounds to that of its owner figure's bounds, expanded by the handle's Insets. -
setReference
Sets the reference figure.- Parameters:
follow
- the reference figure, should be the handle's owner figure
-