public class DefaultSelectionFeedbackPartFactory extends Object implements IFeedbackPartFactory
Modifier and Type | Field and Description |
---|---|
static Color |
DEFAULT_PRIMARY_SELECTION_FEEDBACK_COLOR
Defines the default
Color for primary selection feedback. |
static Color |
DEFAULT_SECONDARY_SELECTION_FEEDBACK_COLOR
Defines the default
Color for secondary selection feedback. |
static String |
PRIMARY_SELECTION_FEEDBACK_COLOR_PROVIDER
The binding name for the primary selection color.
|
static String |
SECONDARY_SELECTION_FEEDBACK_COLOR_PROVIDER
The binding name for the secondary selection color.
|
static String |
SELECTION_FEEDBACK_GEOMETRY_PROVIDER
The role name for the
Provider<IGeometry> that will be
used to generate selection feedback. |
static String |
SELECTION_LINK_FEEDBACK_GEOMETRY_PROVIDER
The role name for the
Provider<IGeometry> that will be
used to generate selection link feedback. |
Constructor and Description |
---|
DefaultSelectionFeedbackPartFactory() |
Modifier and Type | Method and Description |
---|---|
List<IFeedbackPart<? extends Node>> |
createFeedbackParts(List<? extends IVisualPart<? extends Node>> targets,
Map<Object,Object> contextMap)
Creates specific
IFeedbackPart s for the given targets. |
protected IFeedbackPart<? extends Node> |
createLinkFeedbackPart(IVisualPart<? extends Node> anchorage,
Provider<? extends IGeometry> anchorageLinkFeedbackGeometryProvider,
IVisualPart<? extends Node> anchored,
Provider<? extends IGeometry> anchoredLinkFeedbackGeometryProvider,
String role)
Creates a feedback-line between an anchored part and its anchorage.
|
public static final String PRIMARY_SELECTION_FEEDBACK_COLOR_PROVIDER
public static final Color DEFAULT_PRIMARY_SELECTION_FEEDBACK_COLOR
Color
for primary selection feedback.public static final String SECONDARY_SELECTION_FEEDBACK_COLOR_PROVIDER
public static final Color DEFAULT_SECONDARY_SELECTION_FEEDBACK_COLOR
Color
for secondary selection feedback.public static final String SELECTION_FEEDBACK_GEOMETRY_PROVIDER
Provider<IGeometry>
that will be
used to generate selection feedback.public static final String SELECTION_LINK_FEEDBACK_GEOMETRY_PROVIDER
Provider<IGeometry>
that will be
used to generate selection link feedback.public List<IFeedbackPart<? extends Node>> createFeedbackParts(List<? extends IVisualPart<? extends Node>> targets, Map<Object,Object> contextMap)
IFeedbackPartFactory
IFeedbackPart
s for the given targets. As
additional information might be needed by the
IFeedbackPartFactory
to identify the creation context, an
additional contextMap is passed in upon creation.createFeedbackParts
in interface IFeedbackPartFactory
targets
- The target IVisualPart
s for which feedback is to be
created.contextMap
- A map in which additional context information for the creation
process can be placed.IFeedbackPart
s that are to be used to indicate
feedback for the given targets.protected IFeedbackPart<? extends Node> createLinkFeedbackPart(IVisualPart<? extends Node> anchorage, Provider<? extends IGeometry> anchorageLinkFeedbackGeometryProvider, IVisualPart<? extends Node> anchored, Provider<? extends IGeometry> anchoredLinkFeedbackGeometryProvider, String role)
anchorageLinkFeedbackGeometryProvider
- The geometry provider of the anchorage part.anchored
- The anchored IVisualPart
.anchoredLinkFeedbackGeometryProvider
- The link feedback provider of the anchored part.anchorage
- The anchorage IVisualPart
. The role under which the
anchorage is stored at the anchored.role
- The role under which the anchored is attached to the
anchorage.IFeedbackPart
for this anchor link, or
null
if no feedback should be rendered.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.