Class GenericMouseListener<Row>

  • All Implemented Interfaces:
    com.macrofocus.crossplatform.CPCanvas.MouseListener, com.macrofocus.crossplatform.CPCanvas.MouseMotionListener

    public abstract class GenericMouseListener<Row>
    extends java.lang.Object
    implements com.macrofocus.crossplatform.CPCanvas.MouseListener, com.macrofocus.crossplatform.CPCanvas.MouseMotionListener
    Created by luc on 27/07/16.
    • Constructor Detail

      • GenericMouseListener

        public GenericMouseListener​(com.macrofocus.rubberband.RubberBand rubberBand)
    • Method Detail

      • getMode

        protected abstract com.macrofocus.high_d.interaction.InteractionMode getMode()
      • setMode

        protected abstract void setMode​(com.macrofocus.high_d.interaction.InteractionMode mode)
      • isSelectionMode

        public boolean isSelectionMode()
      • setSelectionMode

        public void setSelectionMode​(boolean value)
      • getClosestRow

        protected abstract Row getClosestRow​(int x,
                                             int y)
      • getRows

        protected abstract java.util.Collection<Row> getRows​(com.macrofocus.igraphics.Rectangle2D rect)
      • getRubberBand

        protected com.macrofocus.rubberband.RubberBand getRubberBand()
      • mouseClicked

        public void mouseClicked​(com.macrofocus.crossplatform.CPCanvas.MouseEvent e)
        Specified by:
        mouseClicked in interface com.macrofocus.crossplatform.CPCanvas.MouseListener
      • mousePressed

        public void mousePressed​(com.macrofocus.crossplatform.CPCanvas.MouseEvent event)
        Specified by:
        mousePressed in interface com.macrofocus.crossplatform.CPCanvas.MouseListener
      • mouseReleased

        public void mouseReleased​(com.macrofocus.crossplatform.CPCanvas.MouseEvent event)
        Specified by:
        mouseReleased in interface com.macrofocus.crossplatform.CPCanvas.MouseListener
      • mouseEntered

        public void mouseEntered​(com.macrofocus.crossplatform.CPCanvas.MouseEvent e)
        Specified by:
        mouseEntered in interface com.macrofocus.crossplatform.CPCanvas.MouseListener
      • mouseExited

        public void mouseExited​(com.macrofocus.crossplatform.CPCanvas.MouseEvent e)
        Specified by:
        mouseExited in interface com.macrofocus.crossplatform.CPCanvas.MouseListener
      • mouseDragged

        public void mouseDragged​(com.macrofocus.crossplatform.CPCanvas.MouseEvent event)
        Specified by:
        mouseDragged in interface com.macrofocus.crossplatform.CPCanvas.MouseMotionListener
      • mouseMoved

        public void mouseMoved​(com.macrofocus.crossplatform.CPCanvas.MouseEvent event)
        Specified by:
        mouseMoved in interface com.macrofocus.crossplatform.CPCanvas.MouseMotionListener