|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsynoptic.base.Plugin
jsynoptic.builtin.Builtin
public class Builtin
Default plugin, actually built in jsynoptic
Nested Class Summary | |
---|---|
static class |
Builtin.ASCIIFileOptionComponent
|
class |
Builtin.ExecutableFileProcess
|
Field Summary | |
---|---|
static MenuResourceBundle.FileFilter |
asciiFileFilter
|
protected static javax.swing.filechooser.FileFilter[] |
bothFilters
|
protected static boolean |
hasAlreadyPutProviders
|
static MenuResourceBundle.FileFilter |
jsynopticFilter
|
protected static javax.swing.filechooser.FileFilter[] |
jsynopticOnlyFilters
|
static BasicMessageWriter |
messageWriter
|
protected Builtin.ASCIIFileOptionComponent |
optionPanel
|
protected static java.lang.String[] |
providedComponents
|
protected static java.lang.String[] |
providedSources
|
static MenuResourceBundle |
resources
Resources |
static MenuResourceBundle.FileFilter |
shellFileFilter
|
Fields inherited from class jsynoptic.base.Plugin |
---|
EXPORT, IMPORT, OPEN, SAVE |
Constructor Summary | |
---|---|
Builtin()
|
Method Summary | |
---|---|
java.lang.String |
about()
The information returned here will be displayed in the about box. |
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(). |
DataSource |
createSource(java.lang.String name,
java.lang.String instanceName)
The plugin is asked to create a new source from one of the templates it declared with getSources(). |
javax.swing.filechooser.FileFilter[] |
getFileFilters(int action)
Give the plugin an occasion to add its file filters. |
javax.swing.JComponent |
getOptionPanelForFilter(javax.swing.filechooser.FileFilter filter)
Enables a plugin to show an option panel when the user selects a file using one of the plugin file filters. |
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. |
java.lang.String[] |
getSources()
Source factory: this plugin may bring its own source templates to put in the predefined sources list. |
Template[] |
getTemplates()
Template factory: this plugin may bring templates to put in the template list. |
protected boolean |
processAsciiFile(java.io.File f,
int action)
|
boolean |
processFile(java.io.File f,
int action)
See getFileFilters for usage description. |
protected boolean |
processJSynopticFile(java.io.File f,
int action)
|
protected boolean |
processShellFile(java.io.File f)
Execute a shell file. |
boolean |
saveShapeContainer(ShapesContainer sc,
java.io.File f)
Save Shape container into a specified file. |
Methods inherited from class jsynoptic.base.Plugin |
---|
addPluginHashMap, exit, getDataSourceIcons, getHelp, getShapeName, load, newComponent, newDesktopComponent, newSourceComponent, newSourceComponent, processDataSourceCollection, processSynoptic, setMenu, setMenu, setToolBarItem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static MenuResourceBundle resources
public static BasicMessageWriter messageWriter
public static MenuResourceBundle.FileFilter jsynopticFilter
public static MenuResourceBundle.FileFilter asciiFileFilter
public static MenuResourceBundle.FileFilter shellFileFilter
protected static javax.swing.filechooser.FileFilter[] bothFilters
protected static javax.swing.filechooser.FileFilter[] jsynopticOnlyFilters
protected static java.lang.String[] providedComponents
protected static boolean hasAlreadyPutProviders
protected Builtin.ASCIIFileOptionComponent optionPanel
protected static java.lang.String[] providedSources
Constructor Detail |
---|
public Builtin()
Method Detail |
---|
public java.lang.String[] getShapes()
Plugin
getShapes
in class Plugin
public java.util.HashMap getShapesMap()
Plugin
getShapesMap
in class Plugin
public AbstractShape createShape(java.lang.String name, DiagramComponent diagram)
Plugin
createShape
in class Plugin
name
- The name of the shape to create.diagram
- The diagram this shape will be inserted into.public javax.swing.filechooser.FileFilter[] getFileFilters(int action)
Plugin
getFileFilters
in class Plugin
action
- What to do with the file. Currently OPEN or SAVE.
protected boolean processJSynopticFile(java.io.File f, int action)
public boolean saveShapeContainer(ShapesContainer sc, java.io.File f) throws java.io.IOException
sc,
- the shape containerf,
- the file where to save shape container contents
java.io.IOException
protected boolean processAsciiFile(java.io.File f, int action)
protected boolean processShellFile(java.io.File f)
shell
- file
public boolean processFile(java.io.File f, int action)
Plugin
processFile
in class Plugin
f
- The file to processaction
- What to do with the file. Currently OPEN or SAVE.
public javax.swing.JComponent getOptionPanelForFilter(javax.swing.filechooser.FileFilter filter)
Plugin
getOptionPanelForFilter
in class Plugin
public java.lang.String about()
Plugin
public Template[] getTemplates()
Plugin
getTemplates
in class Plugin
public java.lang.String[] getSources()
Plugin
getSources
in class Plugin
Plugin.getShapes()
public DataSource createSource(java.lang.String name, java.lang.String instanceName)
Plugin
createSource
in class Plugin
name
- The name of the source template.instanceName
- The desired name of the source created from this template.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |