Class AbstractLeftClickProcessor

    • Field Detail

      • m_ShiftDown

        protected boolean m_ShiftDown
        whether shift needs to be down.
      • m_AltDown

        protected boolean m_AltDown
        whether alt needs to be down.
      • m_CtrlDown

        protected boolean m_CtrlDown
        whether ctrl needs to be down.
      • m_MetaDown

        protected boolean m_MetaDown
        whether meta needs to be down.
    • Constructor Detail

      • AbstractLeftClickProcessor

        public AbstractLeftClickProcessor()
    • Method Detail

      • setShiftDown

        public void setShiftDown​(boolean value)
        Sets whether the shift key needs to be down.
        Parameters:
        value - true if needs to be down
      • getShiftDown

        public boolean getShiftDown()
        Returns whether the shift key needs to be down.
        Returns:
        true if needs to be down
      • shiftDownTipText

        public String shiftDownTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setAltDown

        public void setAltDown​(boolean value)
        Sets whether the alt key needs to be down.
        Parameters:
        value - true if needs to be down
      • getAltDown

        public boolean getAltDown()
        Returns whether the alt key needs to be down.
        Returns:
        true if needs to be down
      • altDownTipText

        public String altDownTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setCtrlDown

        public void setCtrlDown​(boolean value)
        Sets whether the ctrl key needs to be down.
        Parameters:
        value - true if needs to be down
      • getCtrlDown

        public boolean getCtrlDown()
        Returns whether the ctrl key needs to be down.
        Returns:
        true if needs to be down
      • ctrlDownTipText

        public String ctrlDownTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setMetaDown

        public void setMetaDown​(boolean value)
        Sets whether the meta key needs to be down.
        Parameters:
        value - true if needs to be down
      • getMetaDown

        public boolean getMetaDown()
        Returns whether the meta key needs to be down.
        Returns:
        true if needs to be down
      • metaDownTipText

        public String metaDownTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • doImageChanged

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

        protected abstract void doProcessClick​(ImagePanel panel,
                                               Point position,
                                               int modifiersEx)
        Process the click that occurred in the image panel.
        Parameters:
        panel - the origin
        position - the position of the click
        modifiersEx - the associated modifiers
      • processClick

        public void processClick​(ImagePanel panel,
                                 Point position,
                                 int modifiersEx,
                                 boolean repaint)
        Process the click that occurred in the image panel.
        Parameters:
        panel - the origin
        position - the position of the click
        modifiersEx - the associated modifiers
        repaint - whether to repaint the panel
      • check

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