bicliqueviz
Class CustomMouse
java.lang.Object
edu.uci.ics.jung.visualization.control.PluggableGraphMouse
edu.uci.ics.jung.visualization.control.AbstractModalGraphMouse
bicliqueviz.CustomMouse
- All Implemented Interfaces:
- edu.uci.ics.jung.visualization.control.ModalGraphMouse, edu.uci.ics.jung.visualization.VisualizationViewer.GraphMouse, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.awt.ItemSelectable, java.util.EventListener
public class CustomMouse
- extends edu.uci.ics.jung.visualization.control.AbstractModalGraphMouse
- implements edu.uci.ics.jung.visualization.control.ModalGraphMouse, java.awt.ItemSelectable, java.awt.event.MouseListener
DefaultModalGraphMouse is a PluggableGraphMouse class that
pre-installs a large collection of plugins for picking and
transforming the graph. Additionally, it carries the notion
of a Mode: Picking or Translating. Switching between modes
allows for a more natural choice of mouse modifiers to
be used for the various plugins. The default modifiers are
intended to mimick those of mainstream software applications
in order to be intuitive to users.
To change between modes, two different controls are offered,
a combo box and a menu system. These controls are lazily created
in their respective 'getter' methods so they don't impact
code that does not intend to use them.
The menu control can be placed in an unused corner of the
GraphZoomScrollPane, which is a common location for mouse
mode selection menus in mainstream applications.
- Author:
- Tom Nelson
Nested classes/interfaces inherited from interface edu.uci.ics.jung.visualization.control.ModalGraphMouse |
edu.uci.ics.jung.visualization.control.ModalGraphMouse.Mode |
Methods inherited from class edu.uci.ics.jung.visualization.control.AbstractModalGraphMouse |
addItemListener, getItemListeners, getModeComboBox, getModeKeyListener, getModeListener, getSelectedObjects, removeItemListener, setMode, setModeKeyListener, setZoomAtMouse |
Methods inherited from class edu.uci.ics.jung.visualization.control.PluggableGraphMouse |
add, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, remove |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.uci.ics.jung.visualization.control.ModalGraphMouse |
getModeListener, setMode |
Methods inherited from interface java.awt.event.MouseListener |
mouseEntered, mouseExited, mousePressed, mouseReleased |
Methods inherited from interface java.awt.event.MouseMotionListener |
mouseDragged, mouseMoved |
Methods inherited from interface java.awt.event.MouseWheelListener |
mouseWheelMoved |
Methods inherited from interface java.awt.ItemSelectable |
addItemListener, getSelectedObjects, removeItemListener |
CustomMouse
public CustomMouse(BiCliqueWin w)
- create an instance with default values
CustomMouse
public CustomMouse(float in,
float out,
BiCliqueWin w)
- create an instance with passed values
- Parameters:
in
- override value for scale inout
- override value for scale out
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked
in interface java.awt.event.MouseListener
- Overrides:
mouseClicked
in class edu.uci.ics.jung.visualization.control.PluggableGraphMouse
getModeMenu
public javax.swing.JMenu getModeMenu()
- Overrides:
getModeMenu
in class edu.uci.ics.jung.visualization.control.AbstractModalGraphMouse