java.lang.Object
org.graffiti.plugin.GenericPluginAdapter
de.ipk_gatersleben.ag_nw.graffiti.IPK_PluginAdapter
de.ipk_gatersleben.ag_nw.graffiti.plugins.misc.link_visualization_legend.LinkVisualizationLegendPlugin
All Implemented Interfaces:
ProvidesGeneralContextMenu, GenericPlugin, SessionListener

public class LinkVisualizationLegendPlugin
extends IPK_PluginAdapter
implements SessionListener, ProvidesGeneralContextMenu
Author:
Christian Klukas
  • Constructor Details

    • LinkVisualizationLegendPlugin

      public LinkVisualizationLegendPlugin()
  • Method Details

    • getCurrentContextMenuItem

      public JMenuItem[] getCurrentContextMenuItem()
      Description copied from interface: ProvidesGeneralContextMenu
      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.
      Specified by:
      getCurrentContextMenuItem in interface ProvidesGeneralContextMenu
      Returns:
      MenuItem the menu item for the context menu
    • sessionChanged

      public void sessionChanged​(Session s)
      Description copied from interface: SessionListener
      This method is called when the session changes.
      Specified by:
      sessionChanged in interface SessionListener
      Parameters:
      s - the new Session.
    • sessionDataChanged

      public void sessionDataChanged​(Session s)
      Description copied from interface: SessionListener
      This method is called when the data (except the graph data) are changed.
      Specified by:
      sessionDataChanged in interface SessionListener