Class ZoomingInsetsHandleLocator
- java.lang.Object
-
- org.eclipse.graphiti.ui.internal.util.draw2d.ZoomingInsetsHandleLocator
-
- All Implemented Interfaces:
org.eclipse.draw2d.Locator
public class ZoomingInsetsHandleLocator extends java.lang.Object implements org.eclipse.draw2d.Locator
A Locator, which sets the target bounds to the reference figure bounds. Insets are applied to expand/shrink the reference figure bounds at the beginning of the calculation. The insets are adjusted with the current zoom-level.
-
-
Constructor Summary
Constructors Constructor Description ZoomingInsetsHandleLocator(org.eclipse.draw2d.IFigure reference, IConfigurationProvider configurationProvider, org.eclipse.draw2d.geometry.Insets handleInsets)
Creates a new ZoomingInsetsHandleLocator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
relocate(org.eclipse.draw2d.IFigure target)
Sets the bounds of the target figure as described above.
-
-
-
Constructor Detail
-
ZoomingInsetsHandleLocator
public ZoomingInsetsHandleLocator(org.eclipse.draw2d.IFigure reference, IConfigurationProvider configurationProvider, org.eclipse.draw2d.geometry.Insets handleInsets)
Creates a new ZoomingInsetsHandleLocator.- Parameters:
reference
- The target bounds are calculated depending on this reference figure.configurationProvider
- The configuration provider which can be used to access the environment.handleInsets
- The insets to apply to the reference figure bounds.
-
-