public class mxPanningHandler extends mxMouseAdapter
Modifier and Type | Field and Description |
---|---|
protected boolean |
enabled |
protected mxGraphComponent |
graphComponent |
protected Point |
start |
Constructor and Description |
---|
mxPanningHandler(mxGraphComponent graphComponent) |
Modifier and Type | Method and Description |
---|---|
boolean |
isActive()
Whether or not panning is currently active
|
boolean |
isEnabled() |
void |
mouseDragged(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
void |
setEnabled(boolean value) |
mouseClicked, mouseEntered, mouseExited, mouseMoved
protected mxGraphComponent graphComponent
protected boolean enabled
protected transient Point start
public mxPanningHandler(mxGraphComponent graphComponent)
graphComponent
- public boolean isEnabled()
public void setEnabled(boolean value)
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class mxMouseAdapter
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class mxMouseAdapter
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class mxMouseAdapter
public boolean isActive()
Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.