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.voidsessionChanged(Session s)This method is called when the session changes.voidsessionDataChanged(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, getInspectorTabsMethods 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:ProvidesGeneralContextMenuThis 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 InterfaceSelectionListenerif the menu item should be variable to the current selection. You could also return a MenuItem that contains a subMenu.- Specified by:
getCurrentContextMenuItemin interfaceProvidesGeneralContextMenu- Returns:
MenuItemthe menu item for the context menu
-
sessionChanged
Description copied from interface:SessionListenerThis method is called when the session changes.- Specified by:
sessionChangedin interfaceSessionListener- Parameters:
s- the new Session.
-
sessionDataChanged
Description copied from interface:SessionListenerThis method is called when the data (except the graph data) are changed.- Specified by:
sessionDataChangedin interfaceSessionListener
-