Class GenericPluginAdapter

java.lang.Object
org.graffiti.plugin.GenericPluginAdapter
All Implemented Interfaces:
GenericPlugin
Direct Known Subclasses:
ApplyGraphLayoutPlugin, ConnectedComponentPlugin, DBE_PluginAdapter, DOTSerializerPlugin, EdgeRoutingPlugin, EditorPluginAdapter, FishEyeLayoutPlugin, ForceDirectedEdgeLayoutPlugin, GMLReaderPlugin, GMLSerializerPlugin, GMLXMLSerializerPlugin, GraffitiAttributesPlugin, GraphMLReaderPlugin, GraphMLWriterPlugin, GraphTreeLayoutPlugin, HammingDistancePlugin, IPK_PluginAdapter, KEGG_XML_ReaderPlugin, MultilevelFrameworkPlugin, NaivePatternFinderPlugin, NoOverlappLayouterPlugin, NoOverlappLayouterPlugin, PNTSerializerPlugin, PrintPlugin, RadialTreeLayoutPlugin, RandomLayouterPlugin, RotatePlugin, RTTreeLayoutPlugin, SpringEmbedderPlugin, XGMMLReaderPlugin, XWGSerializerPlugin

public abstract class GenericPluginAdapter
extends Object
implements GenericPlugin
An adapter class for the generic plugin interface.
Version:
$Revision: 1.10 $
  • Method Details

    • getAlgorithms

      public Algorithm[] getAlgorithms()
      Returns the array of org.graffiti.algorithm.Algorithms the plugin contains.
      Specified by:
      getAlgorithms in interface GenericPlugin
      Returns:
      the array of org.graffiti.algorithm.Algorithms the plugin contains.
    • getAttributeDescriptions

      public AttributeDescription[] getAttributeDescriptions()
      Specified by:
      getAttributeDescriptions in interface GenericPlugin
    • getAttributes

      public Class<? extends Attribute>[] getAttributes()
      Returns the attribute types provided by this plugin.
      Specified by:
      getAttributes in interface GenericPlugin
      Returns:
      the attribute types provided by this plugin.
    • getDependencies

      public String[] getDependencies()
      Returns the array containing the names of the plugin classes the current plugin depends on.
      Specified by:
      getDependencies in interface GenericPlugin
      Returns:
      the array containing the names of the plugin classes the current plugin depends on.
    • getExtensions

      public Extension[] getExtensions()
      Returns an Array of Extensions the plugin provides.
      Specified by:
      getExtensions in interface GenericPlugin
      Returns:
      A array of Extensions the plugin contains.
    • setIsAddon

      public void setIsAddon​(boolean v)
    • getIcon

      public ImageIcon getIcon()
      Returns the default icon for a plugin, which does not overwrite this method.
      Specified by:
      getIcon in interface GenericPlugin
      Returns:
      the default plugin icon for a plugin implementation, which does not overwrite this method.
    • getAddonIcon

      public static ImageIcon getAddonIcon()
    • getInputSerializers

      public InputSerializer[] getInputSerializers()
      Returns the input serializers the plugin provides.
      Specified by:
      getInputSerializers in interface GenericPlugin
      Returns:
      the input serializers the plugin provides.
    • getOutputSerializers

      public OutputSerializer[] getOutputSerializers()
      Returns the output serializers the plugin provides.
      Specified by:
      getOutputSerializers in interface GenericPlugin
      Returns:
      the output serializers the plugin provides.
    • getGraphPostProcessors

      public GraphPostProcessor[] getGraphPostProcessors()
    • isSelectionListener

      public boolean isSelectionListener()
      States whether this class wants to be registered as a SelectionListener.
      Specified by:
      isSelectionListener in interface GenericPlugin
      Returns:
      DOCUMENT ME!
    • isSessionListener

      public boolean isSessionListener()
      States whether this class wants to be registered as a SessionListener.
      Specified by:
      isSessionListener in interface GenericPlugin
      Returns:
      DOCUMENT ME!
    • isViewListener

      public boolean isViewListener()
      Description copied from interface: GenericPlugin
      States whether this class wants to be registered as a ViewListener, i.e. if it wants to get informed when another view in the same session becomes active. This method is not called when another session is activated. Implement SessionListener if you are interested in session changed events.
      Specified by:
      isViewListener in interface GenericPlugin
      Returns:
      DOCUMENT ME!
      See Also:
      GenericPlugin.isViewListener()
    • getViews

      public String[] getViews()
      Returns the array of org.graffiti.plugin.view.Views the plugin contains.
      Specified by:
      getViews in interface GenericPlugin
      Returns:
      the array of org.graffiti.plugin.view.Views the plugin contains.
    • configure

      public void configure​(Preferences p)
      Runs configuration routines for the plugin, e.g. load preferences etc.
      Specified by:
      configure in interface GenericPlugin
      Parameters:
      p - DOCUMENT ME!
    • doBeforeExit

      public void doBeforeExit()
      The routines to perform before the editor will exit.
      Specified by:
      doBeforeExit in interface GenericPlugin
    • interrupt

      public void interrupt()
      Interrupts the running plugin.
      Specified by:
      interrupt in interface GenericPlugin
    • needsEditComponents

      public boolean needsEditComponents()
      States whether this class needs up-to-date information about the current editcomponents. If this method returns true, it must implement interface NeedEditComponents.
      Specified by:
      needsEditComponents in interface GenericPlugin
      Returns:
      DOCUMENT ME!
    • stop

      public void stop()
      Stops a running plugin. Performs exit routines.
      Specified by:
      stop in interface GenericPlugin
    • getDefaultView

      public String getDefaultView()
      Specified by:
      getDefaultView in interface GenericPlugin
    • getURLattributeActions

      public URLattributeAction[] getURLattributeActions()
      Specified by:
      getURLattributeActions in interface GenericPlugin