edu.uci.ics.jung.visualization
Class ZoomPanGraphMouse
java.lang.Object
edu.uci.ics.jung.visualization.control.PluggableGraphMouse
edu.uci.ics.jung.visualization.ZoomPanGraphMouse
- All Implemented Interfaces:
- VisualizationViewer.GraphMouse, MouseListener, MouseMotionListener, MouseWheelListener, EventListener
public class ZoomPanGraphMouse
- extends PluggableGraphMouse
ZoomPanGraphMouse is a PluggableGraphMouse class that includes
zoom via the mouse wheel, and pan via a mouse drag
- Author:
- Tom Nelson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
translatingPlugin
protected TranslatingGraphMousePlugin translatingPlugin
scalingPlugin
protected ScalingGraphMousePlugin scalingPlugin
ZoomPanGraphMouse
public ZoomPanGraphMouse(VisualizationViewer vv)
- Deprecated. no need to pass a VisualizationViewer in constructor
- create an instance with default zoom in/out values
- Parameters:
vv
- the VisualizationViewer not used
ZoomPanGraphMouse
public ZoomPanGraphMouse(VisualizationViewer vv,
float in,
float out)
- Deprecated. no need to pass a VisualizationViewer
- create an instance with passed zoom in/out values
- Parameters:
vv
- the VisualizationViewer - not usedin
- zoom in valueout
- zoom out value
ZoomPanGraphMouse
public ZoomPanGraphMouse()
ZoomPanGraphMouse
public ZoomPanGraphMouse(float in,
float out)
setZoomAtMouse
public void setZoomAtMouse(boolean zoomAtMouse)
- Parameters:
zoomAtMouse
- The zoomAtMouse to set.