Class mxPanningHandler

  • All Implemented Interfaces:
    java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener

    public class mxPanningHandler
    extends mxMouseAdapter
    • Field Detail

      • enabled

        protected boolean enabled
      • start

        protected transient java.awt.Point start
    • Constructor Detail

      • mxPanningHandler

        public mxPanningHandler​(mxGraphComponent graphComponent)
        Parameters:
        graphComponent -
    • Method Detail

      • isEnabled

        public boolean isEnabled()
      • setEnabled

        public void setEnabled​(boolean value)
      • mousePressed

        public void mousePressed​(java.awt.event.MouseEvent e)
        Specified by:
        mousePressed in interface java.awt.event.MouseListener
        Overrides:
        mousePressed in class mxMouseAdapter
      • mouseDragged

        public void mouseDragged​(java.awt.event.MouseEvent e)
        Specified by:
        mouseDragged in interface java.awt.event.MouseMotionListener
        Overrides:
        mouseDragged in class mxMouseAdapter
      • mouseReleased

        public void mouseReleased​(java.awt.event.MouseEvent e)
        Specified by:
        mouseReleased in interface java.awt.event.MouseListener
        Overrides:
        mouseReleased in class mxMouseAdapter
      • isActive

        public boolean isActive()
        Whether or not panning is currently active
        Returns:
        Whether or not panning is currently active