public class ZoomingRelativeHandleLocator
extends org.eclipse.draw2d.RelativeLocator
implements org.eclipse.draw2d.Locator
PositionConstants
. It describes the side/corner of the reference
figure bounds at which the target is located.Constructor and Description |
---|
ZoomingRelativeHandleLocator(org.eclipse.draw2d.IFigure reference,
IConfigurationProvider configurationProvider,
int location,
org.eclipse.draw2d.geometry.Dimension handleDimension,
org.eclipse.draw2d.geometry.Dimension handleInsets)
Creates a new ZoomingInsetsHandleLocator.
|
Modifier and Type | Method and Description |
---|---|
void |
relocate(org.eclipse.draw2d.IFigure target)
Sets the bounds of the target figure as described above.
|
public ZoomingRelativeHandleLocator(org.eclipse.draw2d.IFigure reference, IConfigurationProvider configurationProvider, int location, org.eclipse.draw2d.geometry.Dimension handleDimension, org.eclipse.draw2d.geometry.Dimension handleInsets)
reference
- The target bounds are calculated depending on this reference
figure.configurationProvider
- The configuration provider which can be used to access the
environment.location
- The location can be one of the north-south-east-west constants
in PositionConstants
.handleDimension
- The dimension of the target bounds.handleInsets
- The insets to apply to the reference figure bounds.public void relocate(org.eclipse.draw2d.IFigure target)
relocate
in interface org.eclipse.draw2d.Locator
relocate
in class org.eclipse.draw2d.RelativeLocator
target
- The target figure for which to set the bounds.