edu.uci.ics.jung.samples
Class PluggableRendererDemo.PopupGraphMousePlugin

java.lang.Object
  extended by edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
      extended by edu.uci.ics.jung.visualization.control.AbstractPopupGraphMousePlugin
          extended by edu.uci.ics.jung.samples.PluggableRendererDemo.PopupGraphMousePlugin
All Implemented Interfaces:
GraphMousePlugin, MouseListener, EventListener
Enclosing class:
PluggableRendererDemo

protected class PluggableRendererDemo.PopupGraphMousePlugin
extends AbstractPopupGraphMousePlugin
implements MouseListener

a GraphMousePlugin that offers popup menu support


Field Summary
 
Fields inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
cursor, down, modifiers
 
Constructor Summary
PluggableRendererDemo.PopupGraphMousePlugin()
           
PluggableRendererDemo.PopupGraphMousePlugin(int modifiers)
           
 
Method Summary
protected  void handlePopup(MouseEvent e)
          If this event is over a Vertex, pop up a menu to allow the user to increase/decrease the voltage attribute of this Vertex
 
Methods inherited from class edu.uci.ics.jung.visualization.control.AbstractPopupGraphMousePlugin
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
checkModifiers, getCursor, getModifiers, setCursor, setModifiers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
 

Constructor Detail

PluggableRendererDemo.PopupGraphMousePlugin

public PluggableRendererDemo.PopupGraphMousePlugin()

PluggableRendererDemo.PopupGraphMousePlugin

public PluggableRendererDemo.PopupGraphMousePlugin(int modifiers)
Method Detail

handlePopup

protected void handlePopup(MouseEvent e)
If this event is over a Vertex, pop up a menu to allow the user to increase/decrease the voltage attribute of this Vertex

Specified by:
handlePopup in class AbstractPopupGraphMousePlugin
Parameters:
e -


Copyright © 2009. All Rights Reserved.