public class DefaultHoverIntentHandlePartFactory extends java.lang.Object implements IHandlePartFactory
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HOVER_INTENT_HANDLES_GEOMETRY_PROVIDER
The role name for the
Provider<IGeometry> that will be
used to generate hover handles. |
| Constructor and Description |
|---|
DefaultHoverIntentHandlePartFactory() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<IHandlePart<? extends javafx.scene.Node>> |
createHandleParts(java.util.List<? extends IVisualPart<? extends javafx.scene.Node>> targets,
java.util.Map<java.lang.Object,java.lang.Object> contextMap)
Creates specific
IHandleParts for the given targets. |
protected java.util.List<IHandlePart<? extends javafx.scene.Node>> |
createHoverHandlePartsForCurve(IVisualPart<? extends javafx.scene.Node> target,
java.util.Map<java.lang.Object,java.lang.Object> contextMap,
Provider<BezierCurve[]> segmentsProvider)
Creates hover handle parts for a handle geometry that is an
ICurve. |
protected java.util.List<IHandlePart<? extends javafx.scene.Node>> |
createHoverHandlePartsForPolygonalOutline(IVisualPart<? extends javafx.scene.Node> target,
java.util.Map<java.lang.Object,java.lang.Object> contextMap,
Provider<BezierCurve[]> segmentsProvider)
|
protected java.util.List<IHandlePart<? extends javafx.scene.Node>> |
createHoverHandlePartsForRectangularOutline(IVisualPart<? extends javafx.scene.Node> target,
java.util.Map<java.lang.Object,java.lang.Object> contextMap,
Provider<BezierCurve[]> segmentsProvider)
Creates hover handle parts for a handle geometry that is a
Rectangle. |
public static final java.lang.String HOVER_INTENT_HANDLES_GEOMETRY_PROVIDER
Provider<IGeometry> that will be
used to generate hover handles.public java.util.List<IHandlePart<? extends javafx.scene.Node>> createHandleParts(java.util.List<? extends IVisualPart<? extends javafx.scene.Node>> targets, java.util.Map<java.lang.Object,java.lang.Object> contextMap)
IHandlePartFactoryIHandleParts for the given targets. As
additional information might be needed by the IHandlePartFactory
to identify the creation context, an additional contextMap is
passed in upon creation.createHandleParts in interface IHandlePartFactorytargets - The target IVisualParts for which handles are to be
created.contextMap - A map in which additional context information for the creation
process can be placed.IHandleParts that can be used to manipulate the
given targets.protected java.util.List<IHandlePart<? extends javafx.scene.Node>> createHoverHandlePartsForCurve(IVisualPart<? extends javafx.scene.Node> target, java.util.Map<java.lang.Object,java.lang.Object> contextMap, Provider<BezierCurve[]> segmentsProvider)
ICurve.target - The target IVisualPart for which handles are to be
created.contextMap - A map in which the state-less context IBehavior) may
place additional context information for the creation process.
It may either directly contain additional information needed
by the IHandlePartFactory, or may be passed back by
the IHandlePartFactory to the calling context
IBehavior to query such kind of information (in which
case it will allow the context IBehavior to identify
the creation context).segmentsProvider - A provider for the segments of the handle geometry for which
handles are to be created.IHandleParts that can be used to manipulate the
given targets.protected java.util.List<IHandlePart<? extends javafx.scene.Node>> createHoverHandlePartsForPolygonalOutline(IVisualPart<? extends javafx.scene.Node> target, java.util.Map<java.lang.Object,java.lang.Object> contextMap, Provider<BezierCurve[]> segmentsProvider)
target - The target IVisualPart for which handles are to be
created.contextMap - A map in which the state-less context IBehavior) may
place additional context information for the creation process.
It may either directly contain additional information needed
by the IHandlePartFactory, or may be passed back by
the IHandlePartFactory to the calling context
IBehavior to query such kind of information (in which
case it will allow the context IBehavior to identify
the creation context).segmentsProvider - A provider for the segments of the handle geometry for which
handles are to be created.IHandleParts that can be used to manipulate the
given targets.protected java.util.List<IHandlePart<? extends javafx.scene.Node>> createHoverHandlePartsForRectangularOutline(IVisualPart<? extends javafx.scene.Node> target, java.util.Map<java.lang.Object,java.lang.Object> contextMap, Provider<BezierCurve[]> segmentsProvider)
Rectangle.target - The target IVisualPart for which handles are to be
created.contextMap - A map in which the state-less context IBehavior) may
place additional context information for the creation process.
It may either directly contain additional information needed
by the IHandlePartFactory, or may be passed back by
the IHandlePartFactory to the calling context
IBehavior to query such kind of information (in which
case it will allow the context IBehavior to identify
the creation context).segmentsProvider - A provider for the segments of the handle geometry for which
handles are to be created.IHandleParts that can be used to manipulate the
given targets.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.