Class Axis.AxisMouseListener

  • All Implemented Interfaces:
    org.eclipse.draw2d.MouseListener, org.eclipse.draw2d.MouseMotionListener
    Enclosing class:
    Axis

    class Axis.AxisMouseListener
    extends org.eclipse.draw2d.MouseMotionListener.Stub
    implements org.eclipse.draw2d.MouseListener
    Listener to mouse events, performs panning and some zooms Is very similar to the PlotMouseListener, but unclear how easy/useful it would be to base them on the same code.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.draw2d.MouseListener

        org.eclipse.draw2d.MouseListener.Stub
      • Nested classes/interfaces inherited from interface org.eclipse.draw2d.MouseMotionListener

        org.eclipse.draw2d.MouseMotionListener.Stub
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void mouseDoubleClicked​(org.eclipse.draw2d.MouseEvent me)  
      void mouseDragged​(org.eclipse.draw2d.MouseEvent me)  
      void mouseExited​(org.eclipse.draw2d.MouseEvent me)  
      void mousePressed​(org.eclipse.draw2d.MouseEvent me)  
      void mouseReleased​(org.eclipse.draw2d.MouseEvent me)  
      private void performInOutZoom()
      Perform the in or out zoom according to zoomType
      private void performStartEndZoom()
      Perform the zoom to mouse start/end
      • Methods inherited from class org.eclipse.draw2d.MouseMotionListener.Stub

        mouseEntered, mouseHover, mouseMoved
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AxisMouseListener

        AxisMouseListener()
    • Method Detail

      • mousePressed

        public void mousePressed​(org.eclipse.draw2d.MouseEvent me)
        Specified by:
        mousePressed in interface org.eclipse.draw2d.MouseListener
      • mouseDoubleClicked

        public void mouseDoubleClicked​(org.eclipse.draw2d.MouseEvent me)
        Specified by:
        mouseDoubleClicked in interface org.eclipse.draw2d.MouseListener
      • mouseDragged

        public void mouseDragged​(org.eclipse.draw2d.MouseEvent me)
        Specified by:
        mouseDragged in interface org.eclipse.draw2d.MouseMotionListener
        Overrides:
        mouseDragged in class org.eclipse.draw2d.MouseMotionListener.Stub
      • mouseExited

        public void mouseExited​(org.eclipse.draw2d.MouseEvent me)
        Specified by:
        mouseExited in interface org.eclipse.draw2d.MouseMotionListener
        Overrides:
        mouseExited in class org.eclipse.draw2d.MouseMotionListener.Stub
      • mouseReleased

        public void mouseReleased​(org.eclipse.draw2d.MouseEvent me)
        Specified by:
        mouseReleased in interface org.eclipse.draw2d.MouseListener
      • performStartEndZoom

        private void performStartEndZoom()
        Perform the zoom to mouse start/end
      • performInOutZoom

        private void performInOutZoom()
        Perform the in or out zoom according to zoomType