Class GFHandleHelper
java.lang.Object
org.eclipse.graphiti.ui.internal.util.draw2d.GFHandleHelper
Collection of static helper methods for handles.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.eclipse.gef.handles.AbstractHandle>createShapeHandles(org.eclipse.gef.GraphicalEditPart owner, IConfigurationProviderInternal cp, int supportedResizeDirections, boolean movable, boolean resizeAllowed) Returns a list containing all handles for a given shape.static doublegetZoomLevel(IConfigurationProvider configurationProvider) Returns the current zoom-level to use for the handles.
-
Constructor Details
-
GFHandleHelper
public GFHandleHelper()
-
-
Method Details
-
getZoomLevel
Returns the current zoom-level to use for the handles. This method can be overwritten to enable/disable zooming for handles.- Parameters:
configurationProvider- The configuration provider from which the zoom-level can be retrieved.- Returns:
- The current zoom-level of the given configuration provider.
-
createShapeHandles
public static List<org.eclipse.gef.handles.AbstractHandle> createShapeHandles(org.eclipse.gef.GraphicalEditPart owner, IConfigurationProviderInternal cp, int supportedResizeDirections, boolean movable, boolean resizeAllowed) Returns a list containing all handles for a given shape.- Parameters:
owner- The shape, for which to create the handles.cp- The configuration provider, which can be used to access the environment.supportedResizeDirections- The directions, in which the shape can be resized (seePositionConstants).movable- true, if the shape can be moved.- Returns:
- A list containing all handles for a given shape.
-