public class mxPanningHandler extends mxMouseAdapter
Modifier and Type | Field and Description |
---|---|
protected boolean |
enabled |
protected mxGraphComponent |
graphComponent |
protected java.awt.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(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
setEnabled(boolean value) |
mouseClicked, mouseEntered, mouseExited, mouseMoved
protected mxGraphComponent graphComponent
protected boolean enabled
protected transient java.awt.Point start
public mxPanningHandler(mxGraphComponent graphComponent)
graphComponent
- public boolean isEnabled()
public void setEnabled(boolean value)
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class mxMouseAdapter
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class mxMouseAdapter
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class mxMouseAdapter
public boolean isActive()
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.