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

    Constructors
    Constructor
    Description
    Initialize this popup handler with the specified action handler.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Handle right-click event.

    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
  • Constructor Details

    • PopupMenuMousePlugin

      public PopupMenuMousePlugin(ActionHandler actionHandler)
      Initialize this popup handler with the specified action handler.
      Parameters:
      actionHandler - the action handler to use.
  • Method Details

    • handlePopup

      protected void handlePopup(MouseEvent e)
      Handle right-click event.
      Specified by:
      handlePopup in class edu.uci.ics.jung.visualization.control.AbstractPopupGraphMousePlugin
      Parameters:
      e - the mouse event.