Package org.eclipse.gef.mvc.fx.parts
Class DefaultHoverIntentHandlePartFactory
java.lang.Object
org.eclipse.gef.mvc.fx.parts.DefaultHoverIntentHandlePartFactory
- All Implemented Interfaces:
IHandlePartFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe role name for theProvider<IGeometry>that will be used to generate hover handles. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<IHandlePart<? extends javafx.scene.Node>>createHandleParts(List<? extends IVisualPart<? extends javafx.scene.Node>> targets, Map<Object, Object> contextMap) Creates specificIHandleParts for the given targets.protected List<IHandlePart<? extends javafx.scene.Node>>createHoverHandlePartsForCurve(IVisualPart<? extends javafx.scene.Node> target, Map<Object, Object> contextMap, Provider<BezierCurve[]> segmentsProvider) Creates hover handle parts for a handle geometry that is anICurve.protected List<IHandlePart<? extends javafx.scene.Node>>createHoverHandlePartsForPolygonalOutline(IVisualPart<? extends javafx.scene.Node> target, Map<Object, Object> contextMap, Provider<BezierCurve[]> segmentsProvider) protected List<IHandlePart<? extends javafx.scene.Node>>createHoverHandlePartsForRectangularOutline(IVisualPart<? extends javafx.scene.Node> target, Map<Object, Object> contextMap, Provider<BezierCurve[]> segmentsProvider) Creates hover handle parts for a handle geometry that is aRectangle.
-
Field Details
-
HOVER_INTENT_HANDLES_GEOMETRY_PROVIDER
The role name for theProvider<IGeometry>that will be used to generate hover handles.- See Also:
-
-
Constructor Details
-
DefaultHoverIntentHandlePartFactory
public DefaultHoverIntentHandlePartFactory()
-
-
Method Details
-
createHandleParts
public List<IHandlePart<? extends javafx.scene.Node>> createHandleParts(List<? extends IVisualPart<? extends javafx.scene.Node>> targets, Map<Object, Object> contextMap) Description copied from interface:IHandlePartFactoryCreates specificIHandleParts for the given targets. As additional information might be needed by theIHandlePartFactoryto identify the creation context, an additional contextMap is passed in upon creation.- Specified by:
createHandlePartsin interfaceIHandlePartFactory- Parameters:
targets- The targetIVisualParts for which handles are to be created.contextMap- A map in which additional context information for the creation process can be placed.- Returns:
- A list of
IHandleParts that can be used to manipulate the given targets.
-
createHoverHandlePartsForCurve
protected List<IHandlePart<? extends javafx.scene.Node>> createHoverHandlePartsForCurve(IVisualPart<? extends javafx.scene.Node> target, Map<Object, Object> contextMap, Provider<BezierCurve[]> segmentsProvider) Creates hover handle parts for a handle geometry that is anICurve.- Parameters:
target- The targetIVisualPartfor which handles are to be created.contextMap- A map in which the state-less contextIBehavior) may place additional context information for the creation process. It may either directly contain additional information needed by theIHandlePartFactory, or may be passed back by theIHandlePartFactoryto the calling contextIBehaviorto query such kind of information (in which case it will allow the contextIBehaviorto identify the creation context).segmentsProvider- A provider for the segments of the handle geometry for which handles are to be created.- Returns:
- A list of
IHandleParts that can be used to manipulate the given targets.
-
createHoverHandlePartsForPolygonalOutline
protected List<IHandlePart<? extends javafx.scene.Node>> createHoverHandlePartsForPolygonalOutline(IVisualPart<? extends javafx.scene.Node> target, Map<Object, Object> contextMap, Provider<BezierCurve[]> segmentsProvider) - Parameters:
target- The targetIVisualPartfor which handles are to be created.contextMap- A map in which the state-less contextIBehavior) may place additional context information for the creation process. It may either directly contain additional information needed by theIHandlePartFactory, or may be passed back by theIHandlePartFactoryto the calling contextIBehaviorto query such kind of information (in which case it will allow the contextIBehaviorto identify the creation context).segmentsProvider- A provider for the segments of the handle geometry for which handles are to be created.- Returns:
- A list of
IHandleParts that can be used to manipulate the given targets.
-
createHoverHandlePartsForRectangularOutline
protected List<IHandlePart<? extends javafx.scene.Node>> createHoverHandlePartsForRectangularOutline(IVisualPart<? extends javafx.scene.Node> target, Map<Object, Object> contextMap, Provider<BezierCurve[]> segmentsProvider) Creates hover handle parts for a handle geometry that is aRectangle.- Parameters:
target- The targetIVisualPartfor which handles are to be created.contextMap- A map in which the state-less contextIBehavior) may place additional context information for the creation process. It may either directly contain additional information needed by theIHandlePartFactory, or may be passed back by theIHandlePartFactoryto the calling contextIBehaviorto query such kind of information (in which case it will allow the contextIBehaviorto identify the creation context).segmentsProvider- A provider for the segments of the handle geometry for which handles are to be created.- Returns:
- A list of
IHandleParts that can be used to manipulate the given targets.
-