Package org.eclipse.gef.mvc.fx.parts
Class DefaultSelectionFeedbackPartFactory
- java.lang.Object
-
- org.eclipse.gef.mvc.fx.parts.DefaultSelectionFeedbackPartFactory
-
- All Implemented Interfaces:
IFeedbackPartFactory
public class DefaultSelectionFeedbackPartFactory extends java.lang.Object implements IFeedbackPartFactory
-
-
Field Summary
Fields Modifier and Type Field Description static javafx.scene.paint.ColorDEFAULT_PRIMARY_SELECTION_FEEDBACK_COLORDefines the defaultColorfor primary selection feedback.static javafx.scene.paint.ColorDEFAULT_SECONDARY_SELECTION_FEEDBACK_COLORDefines the defaultColorfor secondary selection feedback.static java.lang.StringPRIMARY_SELECTION_FEEDBACK_COLOR_PROVIDERThe binding name for the primary selection color.static java.lang.StringSECONDARY_SELECTION_FEEDBACK_COLOR_PROVIDERThe binding name for the secondary selection color.static java.lang.StringSELECTION_FEEDBACK_GEOMETRY_PROVIDERThe role name for theProvider<IGeometry>that will be used to generate selection feedback.static java.lang.StringSELECTION_LINK_FEEDBACK_GEOMETRY_PROVIDERThe role name for theProvider<IGeometry>that will be used to generate selection link feedback.
-
Constructor Summary
Constructors Constructor Description DefaultSelectionFeedbackPartFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<IFeedbackPart<? extends javafx.scene.Node>>createFeedbackParts(java.util.List<? extends IVisualPart<? extends javafx.scene.Node>> targets, java.util.Map<java.lang.Object,java.lang.Object> contextMap)Creates specificIFeedbackParts for the given targets.protected IFeedbackPart<? extends javafx.scene.Node>createLinkFeedbackPart(IVisualPart<? extends javafx.scene.Node> anchorage, Provider<? extends IGeometry> anchorageLinkFeedbackGeometryProvider, IVisualPart<? extends javafx.scene.Node> anchored, Provider<? extends IGeometry> anchoredLinkFeedbackGeometryProvider, java.lang.String role)Creates a feedback-line between an anchored part and its anchorage.
-
-
-
Field Detail
-
PRIMARY_SELECTION_FEEDBACK_COLOR_PROVIDER
public static final java.lang.String PRIMARY_SELECTION_FEEDBACK_COLOR_PROVIDER
The binding name for the primary selection color.- See Also:
- Constant Field Values
-
DEFAULT_PRIMARY_SELECTION_FEEDBACK_COLOR
public static final javafx.scene.paint.Color DEFAULT_PRIMARY_SELECTION_FEEDBACK_COLOR
Defines the defaultColorfor primary selection feedback.
-
SECONDARY_SELECTION_FEEDBACK_COLOR_PROVIDER
public static final java.lang.String SECONDARY_SELECTION_FEEDBACK_COLOR_PROVIDER
The binding name for the secondary selection color.- See Also:
- Constant Field Values
-
DEFAULT_SECONDARY_SELECTION_FEEDBACK_COLOR
public static final javafx.scene.paint.Color DEFAULT_SECONDARY_SELECTION_FEEDBACK_COLOR
Defines the defaultColorfor secondary selection feedback.
-
SELECTION_FEEDBACK_GEOMETRY_PROVIDER
public static final java.lang.String SELECTION_FEEDBACK_GEOMETRY_PROVIDER
The role name for theProvider<IGeometry>that will be used to generate selection feedback.- See Also:
- Constant Field Values
-
SELECTION_LINK_FEEDBACK_GEOMETRY_PROVIDER
public static final java.lang.String SELECTION_LINK_FEEDBACK_GEOMETRY_PROVIDER
The role name for theProvider<IGeometry>that will be used to generate selection link feedback.- See Also:
- Constant Field Values
-
-
Method Detail
-
createFeedbackParts
public java.util.List<IFeedbackPart<? extends javafx.scene.Node>> createFeedbackParts(java.util.List<? extends IVisualPart<? extends javafx.scene.Node>> targets, java.util.Map<java.lang.Object,java.lang.Object> contextMap)
Description copied from interface:IFeedbackPartFactoryCreates specificIFeedbackParts for the given targets. As additional information might be needed by theIFeedbackPartFactoryto identify the creation context, an additional contextMap is passed in upon creation.- Specified by:
createFeedbackPartsin interfaceIFeedbackPartFactory- Parameters:
targets- The targetIVisualParts 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
IFeedbackParts that are to be used to indicate feedback for the given targets.
-
createLinkFeedbackPart
protected IFeedbackPart<? extends javafx.scene.Node> createLinkFeedbackPart(IVisualPart<? extends javafx.scene.Node> anchorage, Provider<? extends IGeometry> anchorageLinkFeedbackGeometryProvider, IVisualPart<? extends javafx.scene.Node> anchored, Provider<? extends IGeometry> anchoredLinkFeedbackGeometryProvider, java.lang.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
IFeedbackPartfor this anchor link, ornullif no feedback should be rendered.
-
-