Class AbstractSelectionProcessor

    • Constructor Detail

      • AbstractSelectionProcessor

        public AbstractSelectionProcessor()
    • Method Detail

      • doImageChanged

        protected void doImageChanged​(ImagePanel.PaintPanel panel)
        Notifies the overlay that the image has changed.
        Parameters:
        panel - the panel this overlay belongs to
      • doProcessSelection

        protected abstract void doProcessSelection​(ImagePanel panel,
                                                   Point topLeft,
                                                   Point bottomRight,
                                                   List<Point> trace,
                                                   int modifiersEx)
        Process the selection that occurred in the image panel.
        Parameters:
        panel - the origin
        topLeft - the top-left position of the selection
        bottomRight - the bottom-right position of the selection
        trace - the trace from the selection
        modifiersEx - the associated modifiers
      • processSelection

        public void processSelection​(ImagePanel panel,
                                     Point topLeft,
                                     Point bottomRight,
                                     List<Point> trace,
                                     int modifiersEx)
        Process the selection that occurred in the image panel.
        Specified by:
        processSelection in interface SelectionProcessor
        Parameters:
        panel - the origin
        topLeft - the top-left position of the selection
        bottomRight - the bottom-right position of the selection
        trace - the trace from the selection
        modifiersEx - the associated modifiers
      • check

        protected String check​(ImagePanelSelectionEvent e)
        Performs a check on the event.
        Parameters:
        e - the event to check
        Returns:
        null if OK, otherwise error message