Class ScrollableSelectionFeedbackEditPolicy

    • Constructor Detail

      • ScrollableSelectionFeedbackEditPolicy

        public ScrollableSelectionFeedbackEditPolicy()
    • Method Detail

      • addFeedbackFigure

        protected void addFeedbackFigure​(org.eclipse.draw2d.IFigure feedbackFigure,
                                         org.eclipse.draw2d.geometry.Rectangle feedbackFigureAbsoluteBounds)
        Adds a given feedback figure to the feedback layer (using the provided bounds to layout it) and registers it in the local feedbackFigures list.
        Parameters:
        feedbackFigure - the feedback figure to add to the feedback layer
        feedbackFigureAbsoluteBounds - the absolute bounds used to layout the feedback figure
      • createConnectionFeedbackFigure

        protected void createConnectionFeedbackFigure​(ConnectionEditPart connectionEditPart)
        Creates a ghost image feedback figure for the given ConnectionEditPart's figure and adds it to the feedback layer.
        Parameters:
        connectionEditPart -
      • createConnectionFeedbackFigures

        protected void createConnectionFeedbackFigures()
        Creates the connection layer feedback figures.
      • createNodeFeedbackFigure

        protected void createNodeFeedbackFigure​(GraphicalEditPart childEditPart)
        Creates a ghost image feedback figure for the given GraphicalEditPart's figure and adds it to the feedback layer.
        Parameters:
        childEditPart -
      • createNodeFeedbackFigures

        protected void createNodeFeedbackFigures()
        Creates the primary layer feedback figures.
      • getAlpha

        protected int getAlpha()
        Used to obtain the alpha value used for all feedback figures. The valid range is the one documented for Graphics.setAlpha(int).
        Returns:
        the alpha
      • getHostFigureViewport

        protected org.eclipse.draw2d.Viewport getHostFigureViewport()
        Provides access to the host figure's Viewport.
        Returns:
        the nested Viewport of the host figure's ScrollPane
      • hideFeedback

        protected void hideFeedback()
        Removes all feedback figures from the feedback layer as well as from the feedbackFigures list.
      • setAlpha

        public void setAlpha​(int alpha)
        Used to specify the alpha value used for all feedback figures. The valid range is the one documented for Graphics.setAlpha(int).
        Parameters:
        alpha -
      • showFeedback

        protected void showFeedback()
        Creates feedback figures for all node figures nested within the host figure's viewport, as well as for all incoming and outgoing connections of these nodes. Feedback figures are only created in case there are children or connections, which are not fully visible.
      • updateFeedback

        protected void updateFeedback()
        Removes any existing feedback figures by delegating to hideFeedback(). In case the host edit part is the primary selection, recreates feedback figures via showFeedback().