public class DefaultSelectionHandlePartFactory extends java.lang.Object implements IHandlePartFactory
Modifier and Type | Field and Description |
---|---|
protected static double |
BENDPOINT_CREATE_HANDLE_MINIMUM_SEGMENT_LENGTH
The minimum segment length so that creation handles are shown.
|
static java.lang.String |
CONNECTED_HANDLE_COLOR_PROVIDER
An adapter role for the fill color of connected handles.
|
static javafx.scene.paint.Color |
DEFAULT_CONNECTED_HANDLE_COLOR
Defines the default
Color for connected handles. |
static javafx.scene.paint.Color |
DEFAULT_INSERT_HANDLE_COLOR
Defines the default
Color for insertion handles. |
static javafx.scene.paint.Color |
DEFAULT_MOVE_HANDLE_COLOR
Defines the default
Color for movement handles. |
static java.lang.String |
INSERT_HANDLE_COLOR_PROVIDER
A binding key for the fill color of intra segment handles.
|
static java.lang.String |
MOVE_HANDLE_COLOR_PROVIDER
An adapter role for the fill color of segment end handles.
|
static java.lang.String |
MULTI_SELECTION_HANDLES_GEOMETRY_PROVIDER
The role name for the
Provider<IGeometry> that will be
used to generate selection handles for a multi selection. |
protected static double |
SEGMENT_CREATE_HANDLE_MINIMUM_SEGMENT_LENGTH
The minimum segment length for creation of segment create handles
|
protected static double |
SEGMENT_MOVE_HANDLE_MINIMUM_SEGMENT_LENGTH
The minimum segment length for the creation of segment bend handles.
|
static java.lang.String |
SELECTION_HANDLES_GEOMETRY_PROVIDER
The role name for the
Provider<IGeometry> that will be
used to generate selection handles. |
Constructor and Description |
---|
DefaultSelectionHandlePartFactory() |
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
IHandlePart s for the given targets. |
protected java.util.List<IHandlePart<? extends javafx.scene.Node>> |
createMultiSelectionHandleParts(java.util.List<? extends IVisualPart<? extends javafx.scene.Node>> targets,
java.util.Map<java.lang.Object,java.lang.Object> contextMap)
Creates handle parts for a multi selection.
|
protected java.util.List<IHandlePart<? extends javafx.scene.Node>> |
createSingleSelectionHandleParts(IVisualPart<? extends javafx.scene.Node> target,
java.util.Map<java.lang.Object,java.lang.Object> contextMap)
Creates handle parts for a single selection.
|
protected java.util.List<IHandlePart<? extends javafx.scene.Node>> |
createSingleSelectionHandlePartsForCurve(IVisualPart<? extends javafx.scene.Node> target,
java.util.Map<java.lang.Object,java.lang.Object> contextMap,
Provider<BezierCurve[]> segmentsProvider)
Creates handle parts for a single selection of which the handle geometry
is an
ICurve . |
protected java.util.List<IHandlePart<? extends javafx.scene.Node>> |
createSingleSelectionHandlePartsForPolygonalOutline(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>> |
createSingleSelectionHandlePartsForRectangularOutline(IVisualPart<? extends javafx.scene.Node> target,
java.util.Map<java.lang.Object,java.lang.Object> contextMap,
Provider<BezierCurve[]> segmentsProvider)
Creates handle parts for a single selection of which the handle geometry
is a
Rectangle . |
public static final java.lang.String INSERT_HANDLE_COLOR_PROVIDER
public static final javafx.scene.paint.Color DEFAULT_INSERT_HANDLE_COLOR
Color
for insertion handles.public static final java.lang.String MOVE_HANDLE_COLOR_PROVIDER
public static final javafx.scene.paint.Color DEFAULT_MOVE_HANDLE_COLOR
Color
for movement handles.public static final java.lang.String CONNECTED_HANDLE_COLOR_PROVIDER
public static final javafx.scene.paint.Color DEFAULT_CONNECTED_HANDLE_COLOR
Color
for connected handles.public static final java.lang.String SELECTION_HANDLES_GEOMETRY_PROVIDER
Provider<IGeometry>
that will be
used to generate selection handles.public static final java.lang.String MULTI_SELECTION_HANDLES_GEOMETRY_PROVIDER
Provider<IGeometry>
that will be
used to generate selection handles for a multi selection.protected static final double BENDPOINT_CREATE_HANDLE_MINIMUM_SEGMENT_LENGTH
protected static final double SEGMENT_MOVE_HANDLE_MINIMUM_SEGMENT_LENGTH
protected static final double SEGMENT_CREATE_HANDLE_MINIMUM_SEGMENT_LENGTH
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)
IHandlePartFactory
IHandlePart
s 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 IHandlePartFactory
targets
- The target IVisualPart
s for which handles are to be
created.contextMap
- A map in which additional context information for the creation
process can be placed.IHandlePart
s that can be used to manipulate the
given targets.protected java.util.List<IHandlePart<? extends javafx.scene.Node>> createMultiSelectionHandleParts(java.util.List<? extends IVisualPart<? extends javafx.scene.Node>> targets, java.util.Map<java.lang.Object,java.lang.Object> contextMap)
targets
- The target IVisualPart
s 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).IHandlePart
s that can be used to manipulate the
given targets.protected java.util.List<IHandlePart<? extends javafx.scene.Node>> createSingleSelectionHandleParts(IVisualPart<? extends javafx.scene.Node> target, java.util.Map<java.lang.Object,java.lang.Object> contextMap)
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).IHandlePart
s that can be used to manipulate the
given targets.protected java.util.List<IHandlePart<? extends javafx.scene.Node>> createSingleSelectionHandlePartsForCurve(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.IHandlePart
s that can be used to manipulate the
given targets.protected java.util.List<IHandlePart<? extends javafx.scene.Node>> createSingleSelectionHandlePartsForPolygonalOutline(IVisualPart<? extends javafx.scene.Node> target, java.util.Map<java.lang.Object,java.lang.Object> contextMap, Provider<BezierCurve[]> segmentsProvider)
IShape
but not a 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.IHandlePart
s that can be used to manipulate the
given targets.protected java.util.List<IHandlePart<? extends javafx.scene.Node>> createSingleSelectionHandlePartsForRectangularOutline(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.IHandlePart
s that can be used to manipulate the
given targets.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.