Class LinkVisualizationLegendPlugin
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 Summary
Constructors Constructor Description LinkVisualizationLegendPlugin()
-
Method Summary
Modifier and Type Method Description JMenuItem[]
getCurrentContextMenuItem()
This method should be implemented, as that it returns the desired Context-MenuItem for the Plugin.void
sessionChanged(Session s)
This method is called when the session changes.void
sessionDataChanged(Session s)
This method is called when the data (except the graph data) are changed.Methods inherited from class de.ipk_gatersleben.ag_nw.graffiti.IPK_PluginAdapter
getIcon, getInspectorTabs
Methods inherited from class org.graffiti.plugin.GenericPluginAdapter
configure, doBeforeExit, getAddonIcon, getAlgorithms, getAttributeDescriptions, getAttributes, getDefaultView, getDependencies, getExtensions, getGraphPostProcessors, getInputSerializers, getOutputSerializers, getURLattributeActions, getViews, interrupt, isSelectionListener, isSessionListener, isViewListener, needsEditComponents, setIsAddon, stop
-
Constructor Details
-
LinkVisualizationLegendPlugin
public LinkVisualizationLegendPlugin()
-
-
Method Details
-
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 InterfaceSelectionListener
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 interfaceProvidesGeneralContextMenu
- Returns:
MenuItem
the menu item for the context menu
-
sessionChanged
Description copied from interface:SessionListener
This method is called when the session changes.- Specified by:
sessionChanged
in interfaceSessionListener
- Parameters:
s
- the new Session.
-
sessionDataChanged
Description copied from interface:SessionListener
This method is called when the data (except the graph data) are changed.- Specified by:
sessionDataChanged
in interfaceSessionListener
-