jsynoptic.plugins.merge
Class JSMergeCollectionPlugin

java.lang.Object
  extended by jsynoptic.base.Plugin
      extended by jsynoptic.plugins.merge.JSMergeCollectionPlugin
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class JSMergeCollectionPlugin
extends Plugin
implements java.awt.event.ActionListener

Author:
ogor

Nested Class Summary
 class JSMergeCollectionPlugin.TestMergedCollection1
           
 class JSMergeCollectionPlugin.TestMergedCollection2
           
 
Field Summary
protected  javax.swing.JMenuItem mergeItem
           
static int numberOfMergeCollection
           
static MenuResourceBundle resources
           
 
Fields inherited from class jsynoptic.base.Plugin
EXPORT, IMPORT, OPEN, SAVE
 
Constructor Summary
JSMergeCollectionPlugin()
           
 
Method Summary
 java.lang.String about()
          The information returned here will be displayed in the about box.
 void actionPerformed(java.awt.event.ActionEvent e)
           
static java.lang.String getADefaultName()
           
 java.lang.Object[][] getDataSourceIcons()
          Source factory: this plugin may bring its own data sources with its own icons to display them in the source panel
 void setMenu(javax.swing.JMenuBar mb)
          Adds a menu entry in the tools menu
 
Methods inherited from class jsynoptic.base.Plugin
addPluginHashMap, createShape, createSource, exit, getFileFilters, getHelp, getOptionPanelForFilter, getShapeName, getShapes, getShapesMap, getSources, getTemplates, load, newComponent, newDesktopComponent, newSourceComponent, newSourceComponent, processDataSourceCollection, processFile, processSynoptic, setMenu, setToolBarItem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mergeItem

protected javax.swing.JMenuItem mergeItem

resources

public static MenuResourceBundle resources

numberOfMergeCollection

public static int numberOfMergeCollection
Constructor Detail

JSMergeCollectionPlugin

public JSMergeCollectionPlugin()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

getADefaultName

public static java.lang.String getADefaultName()
Returns:
the default name used for a next merged collection

setMenu

public void setMenu(javax.swing.JMenuBar mb)
Adds a menu entry in the tools menu

Overrides:
setMenu in class Plugin
Parameters:
mb - The menubar in which to add menus. Typically, the plugin is expected to call tb.add on each of its menus, and should add MenuListeners on them too.

getDataSourceIcons

public java.lang.Object[][] getDataSourceIcons()
Description copied from class: Plugin
Source factory: this plugin may bring its own data sources with its own icons to display them in the source panel

Overrides:
getDataSourceIcons in class Plugin
Returns:
An array or null if no specific icons. Each row contains in the first column the data source class and the second column contains the icon to display it.

about

public java.lang.String about()
Description copied from class: Plugin
The information returned here will be displayed in the about box. You should return an HTML 3.2 text content. This text will be included in a
  • tag. Returning null is permitted, and disables completely this plugin information. Default is to use the class name, without the package prefix.

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