edu.uci.ics.jung.visualization.control
Class EditingPopupGraphMousePlugin<V,E>

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.visualization.control.EditingPopupGraphMousePlugin<V,E>
All Implemented Interfaces:
GraphMousePlugin, MouseListener, EventListener

public class EditingPopupGraphMousePlugin<V,E>
extends AbstractPopupGraphMousePlugin

a plugin that uses popup menus to create vertices, undirected edges, and directed edges.

Author:
Tom Nelson

Field Summary
protected  org.apache.commons.collections15.Factory<E> edgeFactory
           
protected  JPopupMenu popup
           
protected  org.apache.commons.collections15.Factory<V> vertexFactory
           
 
Fields inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
cursor, down, modifiers
 
Constructor Summary
EditingPopupGraphMousePlugin(org.apache.commons.collections15.Factory<V> vertexFactory, org.apache.commons.collections15.Factory<E> edgeFactory)
           
 
Method Summary
protected  void handlePopup(MouseEvent e)
           
 
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
 

Field Detail

vertexFactory

protected org.apache.commons.collections15.Factory<V> vertexFactory

edgeFactory

protected org.apache.commons.collections15.Factory<E> edgeFactory

popup

protected JPopupMenu popup
Constructor Detail

EditingPopupGraphMousePlugin

public EditingPopupGraphMousePlugin(org.apache.commons.collections15.Factory<V> vertexFactory,
                                    org.apache.commons.collections15.Factory<E> edgeFactory)
Method Detail

handlePopup

protected void handlePopup(MouseEvent e)
Specified by:
handlePopup in class AbstractPopupGraphMousePlugin


Copyright © 2009. All Rights Reserved.