public class GFHandleHelper
extends java.lang.Object
Constructor and Description |
---|
GFHandleHelper() |
Modifier and Type | Method and Description |
---|---|
static java.util.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 double |
getZoomLevel(IConfigurationProvider configurationProvider)
Returns the current zoom-level to use for the handles.
|
public static double getZoomLevel(IConfigurationProvider configurationProvider)
configurationProvider
- The configuration provider from which the zoom-level can be
retrieved.public static java.util.List<org.eclipse.gef.handles.AbstractHandle> createShapeHandles(org.eclipse.gef.GraphicalEditPart owner, IConfigurationProviderInternal cp, int supportedResizeDirections, boolean movable, boolean resizeAllowed)
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 (see
PositionConstants
).movable
- true, if the shape can be moved.