Interface ProvidesNodeContextMenu

All Known Implementing Classes:
ExpandReduceLayouterAlgorithm, GridPlacementAlgorithm, HideOrShowChildNodes, HierarchyAlgorithm, InterpreteParentGOtermsAlgorithm, NumberNodesAndEdgesAlgorithm, SelectLeafNodesAlgorithm

public interface ProvidesNodeContextMenu
DOCUMENT ME!
Version:
$Revision: 1.4 $
Author:
$Author: klukas $
  • Method Summary

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

    • getCurrentNodeContextMenuItem

      JMenuItem[] getCurrentNodeContextMenuItem​(Collection<Node> selectedNodes)
      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