jsynoptic.plugins.svg
Class SvgPlugin

java.lang.Object
  extended by jsynoptic.base.Plugin
      extended by jsynoptic.plugins.svg.SvgPlugin

public class SvgPlugin
extends Plugin

A plugin to enable SvgShape


Field Summary
static MenuResourceBundle resources
           
static java.lang.String SVG_SHAPE
           
 
Fields inherited from class jsynoptic.base.Plugin
EXPORT, IMPORT, OPEN, SAVE
 
Constructor Summary
SvgPlugin()
           
 
Method Summary
 java.lang.String about()
          Enter your plugin information here.
 AbstractShape createShape(java.lang.String name, DiagramComponent diagram)
          The plugin is asked to create a new shape for one of the name it provided with getShapes().
static AbstractShape createSvgShape(DiagramComponent diagram)
          Method createSvgShape static method to create a SvgShape Parameters:
 java.lang.String[] getShapes()
          Shape factory: this plugin may bring its own shapes to put in the shape list.
 java.util.HashMap getShapesMap()
          Get a map that links the plugin shapes classes with the corresponding shapes names.
 
Methods inherited from class jsynoptic.base.Plugin
addPluginHashMap, createSource, exit, getDataSourceIcons, getFileFilters, getHelp, getOptionPanelForFilter, getShapeName, getSources, getTemplates, load, newComponent, newDesktopComponent, newSourceComponent, newSourceComponent, processDataSourceCollection, processFile, processSynoptic, setMenu, setMenu, setToolBarItem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resources

public static MenuResourceBundle resources

SVG_SHAPE

public static final java.lang.String SVG_SHAPE
Constructor Detail

SvgPlugin

public SvgPlugin()
Method Detail

about

public java.lang.String about()
Enter your plugin information here. This will appear in the about box. Warning : uses HTML... @see jsynoptic.base.Plugin#about()

Overrides:
about in class Plugin
Returns:
the information about this plugin, including authors, license, etc..

createSvgShape

public static AbstractShape createSvgShape(DiagramComponent diagram)
Method createSvgShape static method to create a SvgShape Parameters:

Parameters:
diagram -
Returns:
the shape

getShapes

public java.lang.String[] getShapes()
Description copied from class: Plugin
Shape factory: this plugin may bring its own shapes to put in the shape list. It will then be asked to create a new shape when requested. As an example, the plot is a basic shape provided with JSynoptic.

Overrides:
getShapes in class Plugin
Returns:
An array of shape names, or null if this plugin does not provide any shape.

getShapesMap

public java.util.HashMap getShapesMap()
Description copied from class: Plugin
Get a map that links the plugin shapes classes with the corresponding shapes names.

Overrides:
getShapesMap in class Plugin
Returns:
the hash map if the plugin is able to create shapes, or null if this plugin does not provide any shape.

createShape

public AbstractShape createShape(java.lang.String name,
                                 DiagramComponent diagram)
Description copied from class: Plugin
The plugin is asked to create a new shape for one of the name it provided with getShapes(). Note that the newly created shape will be inserted in a diagram set up with an ActionPopup popup menu. Thus, it may implement JSynoptic ContextualActionProvider interface to interact with the user.

Overrides:
createShape in class Plugin
Parameters:
name - The name of the shape to create.
diagram - The diagram this shape will be inserted into.