Interface ProvidesEdgeContextMenu

All Known Implementing Classes:
DeleteNodesAlgorithm, NumberNodesAndEdgesAlgorithm

public interface ProvidesEdgeContextMenu
DOCUMENT ME!
Version:
$Revision: 1.5 $
Author:
$Author: klukas $
  • Method Summary

    Modifier and Type Method Description
    JMenuItem[] getCurrentEdgeContextMenuItem​(Collection<Edge> selectedEdges)
    This method should be implemented, as that it returns the desired Context-MenuItem for the Plugin.
  • Method Details

    • getCurrentEdgeContextMenuItem

      JMenuItem[] getCurrentEdgeContextMenuItem​(Collection<Edge> selectedEdges)
      This method should be implemented, as that it returns the desired Context-MenuItem for the Plugin. It will be added on the fly to a newly created context menu, when the user right-clicks an EditorFrame. The plugin should implement the Interface SelectionListener if the menu item should be variable to the current selection. You could also return a MenuItem that contains a subMenu.
      Returns:
      MenuItem the menu item for the context menu