prefuse.controls
Class WheelZoomControl

java.lang.Object
  extended by prefuse.controls.ControlAdapter
      extended by prefuse.controls.AbstractZoomControl
          extended by prefuse.controls.WheelZoomControl
All Implemented Interfaces:
java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener, Control

public class WheelZoomControl
extends AbstractZoomControl

Zooms the display using the mouse scroll wheel, changing the scale of the viewable region.

Author:
bobruney, mathis ahrens, jeffrey heer

Field Summary
 
Fields inherited from class prefuse.controls.AbstractZoomControl
DEFAULT_MAX_SCALE, DEFAULT_MIN_SCALE, m_maxScale, m_minScale, m_zoomOverItem, MAX_ZOOM, MIN_ZOOM, NO_ZOOM, ZOOM
 
Fields inherited from interface prefuse.controls.Control
LEFT_MOUSE_BUTTON, MIDDLE_MOUSE_BUTTON, RIGHT_MOUSE_BUTTON
 
Constructor Summary
WheelZoomControl()
           
 
Method Summary
 void itemWheelMoved(VisualItem item, java.awt.event.MouseWheelEvent e)
          Invoked when the mouse wheel is rotated while the mouse is over a VisualItem.
 void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
          Invoked when the mouse wheel is rotated while the mouse is over the Display (but NOT a VisualItem).
 
Methods inherited from class prefuse.controls.AbstractZoomControl
getMaxScale, getMinScale, isZoomOverItem, setMaxScale, setMinScale, setZoomOverItem, zoom
 
Methods inherited from class prefuse.controls.ControlAdapter
isEnabled, itemClicked, itemDragged, itemEntered, itemExited, itemKeyPressed, itemKeyReleased, itemKeyTyped, itemMoved, itemPressed, itemReleased, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WheelZoomControl

public WheelZoomControl()
Method Detail

itemWheelMoved

public void itemWheelMoved(VisualItem item,
                           java.awt.event.MouseWheelEvent e)
Description copied from interface: Control
Invoked when the mouse wheel is rotated while the mouse is over a VisualItem.

Specified by:
itemWheelMoved in interface Control
Overrides:
itemWheelMoved in class ControlAdapter
See Also:
Control.itemWheelMoved(prefuse.visual.VisualItem, java.awt.event.MouseWheelEvent)

mouseWheelMoved

public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
Description copied from interface: Control
Invoked when the mouse wheel is rotated while the mouse is over the Display (but NOT a VisualItem).

Specified by:
mouseWheelMoved in interface java.awt.event.MouseWheelListener
Specified by:
mouseWheelMoved in interface Control
Overrides:
mouseWheelMoved in class ControlAdapter
See Also:
MouseWheelListener.mouseWheelMoved(java.awt.event.MouseWheelEvent)


Copyright © 2007 Regents of the University of California