Package org.eclipse.gef.mvc.fx.parts
Class DefaultSelectionFeedbackPartFactory
java.lang.Object
org.eclipse.gef.mvc.fx.parts.DefaultSelectionFeedbackPartFactory
- All Implemented Interfaces:
IFeedbackPartFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Color
Defines the defaultColor
for primary selection feedback.static final Color
Defines the defaultColor
for secondary selection feedback.static final String
The binding name for the primary selection color.static final String
The binding name for the secondary selection color.static final String
The role name for theProvider<IGeometry>
that will be used to generate selection feedback.static final String
The role name for theProvider<IGeometry>
that will be used to generate selection link feedback. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<IFeedbackPart<? extends Node>>
createFeedbackParts
(List<? extends IVisualPart<? extends Node>> targets, Map<Object, Object> contextMap) Creates specificIFeedbackPart
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.
-
Field Details
-
PRIMARY_SELECTION_FEEDBACK_COLOR_PROVIDER
The binding name for the primary selection color.- See Also:
-
DEFAULT_PRIMARY_SELECTION_FEEDBACK_COLOR
Defines the defaultColor
for primary selection feedback. -
SECONDARY_SELECTION_FEEDBACK_COLOR_PROVIDER
The binding name for the secondary selection color.- See Also:
-
DEFAULT_SECONDARY_SELECTION_FEEDBACK_COLOR
Defines the defaultColor
for secondary selection feedback. -
SELECTION_FEEDBACK_GEOMETRY_PROVIDER
The role name for theProvider<IGeometry>
that will be used to generate selection feedback.- See Also:
-
SELECTION_LINK_FEEDBACK_GEOMETRY_PROVIDER
The role name for theProvider<IGeometry>
that will be used to generate selection link feedback.- See Also:
-
-
Constructor Details
-
DefaultSelectionFeedbackPartFactory
public DefaultSelectionFeedbackPartFactory()
-
-
Method Details
-
createFeedbackParts
public List<IFeedbackPart<? extends Node>> createFeedbackParts(List<? extends IVisualPart<? extends Node>> targets, Map<Object, Object> contextMap) Description copied from interface:IFeedbackPartFactory
Creates specificIFeedbackPart
s for the given targets. As additional information might be needed by theIFeedbackPartFactory
to identify the creation context, an additional contextMap is passed in upon creation.- Specified by:
createFeedbackParts
in interfaceIFeedbackPartFactory
- Parameters:
targets
- The targetIVisualPart
s for which feedback is to be created.contextMap
- A map in which additional context information for the creation process can be placed.- Returns:
- A list of
IFeedbackPart
s that are to be used to indicate feedback for the given targets.
-
createLinkFeedbackPart
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.- Parameters:
anchorageLinkFeedbackGeometryProvider
- The geometry provider of the anchorage part.anchored
- The anchoredIVisualPart
.anchoredLinkFeedbackGeometryProvider
- The link feedback provider of the anchored part.anchorage
- The anchorageIVisualPart
. The role under which the anchorage is stored at the anchored.role
- The role under which the anchored is attached to the anchorage.- Returns:
- The
IFeedbackPart
for this anchor link, ornull
if no feedback should be rendered.
-