Class PopupMenuMousePlugin<V,E>
java.lang.Object
edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
edu.uci.ics.jung.visualization.control.AbstractPopupGraphMousePlugin
org.jppf.ui.monitoring.node.graph.PopupMenuMousePlugin<V,E>
- Type Parameters:
V- the type of the vertices.E- the type of the edges.
- All Implemented Interfaces:
edu.uci.ics.jung.visualization.control.GraphMousePlugin,MouseListener,EventListener
public class PopupMenuMousePlugin<V,E>
extends edu.uci.ics.jung.visualization.control.AbstractPopupGraphMousePlugin
A GraphMousePlugin that brings up distinct popup menus when an edge or vertex is appropriately clicked in a graph. If
these menus contain components that implement either the EdgeMenuListener or VertexMenuListener then the
corresponding interface methods will be called prior to the display of the menus (so that they can display context
sensitive information for the edge or vertex).
- Author:
- Laurent Cohen
-
Field Summary
Fields inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
cursor, down, modifiers -
Constructor Summary
ConstructorsConstructorDescriptionPopupMenuMousePlugin(ActionHandler actionHandler) Initialize this popup handler with the specified action handler. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidHandle right-click event.Methods inherited from class edu.uci.ics.jung.visualization.control.AbstractPopupGraphMousePlugin
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleasedMethods inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
checkModifiers, getCursor, getModifiers, setCursor, setModifiers
-
Constructor Details
-
PopupMenuMousePlugin
Initialize this popup handler with the specified action handler.- Parameters:
actionHandler- the action handler to use.
-
-
Method Details
-
handlePopup
Handle right-click event.- Specified by:
handlePopupin classedu.uci.ics.jung.visualization.control.AbstractPopupGraphMousePlugin- Parameters:
e- the mouse event.
-