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, mouseMovedprotected 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 MouseListenermousePressed in class mxMouseAdapterpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenermouseDragged in class mxMouseAdapterpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenermouseReleased in class mxMouseAdapterpublic boolean isActive()
Copyright (c) 2010 Gaudenz Alder. All rights reserved.