com.mxgraph.swing.handler
Class mxPanningHandler
java.lang.Object
com.mxgraph.swing.util.mxMouseAdapter
com.mxgraph.swing.handler.mxPanningHandler
- All Implemented Interfaces:
- MouseListener, MouseMotionListener, EventListener
public class mxPanningHandler
- extends mxMouseAdapter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
graphComponent
protected mxGraphComponent graphComponent
enabled
protected boolean enabled
start
protected transient Point start
mxPanningHandler
public mxPanningHandler(mxGraphComponent graphComponent)
- Parameters:
graphComponent
-
isEnabled
public boolean isEnabled()
setEnabled
public void setEnabled(boolean value)
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressed
in interface MouseListener
- Overrides:
mousePressed
in class mxMouseAdapter
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDragged
in interface MouseMotionListener
- Overrides:
mouseDragged
in class mxMouseAdapter
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleased
in interface 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
Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.