jsynoptic.plugins.syn3d.xith3d
Class Xith3DPlugin3D

java.lang.Object
  extended by jsynoptic.base.Plugin
      extended by jsynoptic.plugins.syn3d.xith3d.Xith3DPlugin3D

public class Xith3DPlugin3D
extends Plugin

The Plugin3D class is the starting point to add 3D scenes in Jsynoptic. A Java3DPlugin3D class is related to a Java3D viewer.

Author:
Ronan OGOR

Field Summary
protected  SceneGraphEditor editor
           
protected  Syn3DPlugin mainBuiltin
           
protected  PluginManager pluginManager
           
protected  java.lang.String pluginName
           
protected  SceneGraphTree sceneTree
           
protected  SceneGraphModel tm
           
 
Fields inherited from class jsynoptic.base.Plugin
EXPORT, IMPORT, OPEN, SAVE
 
Constructor Summary
Xith3DPlugin3D()
           
 
Method Summary
 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().
 SceneGraphEditor getEditor()
           
 PluginManager getPluginManager()
           
 SceneGraphTree getSceneTree()
           
 java.lang.String[] getShapes()
          Shape factory: this plugin may bring its own shapes to put in the shape list.
 void newSourceComponent(NamedElementContainer nec)
          Give the plugin an occasion to work at source panel initialisation
 
Methods inherited from class jsynoptic.base.Plugin
about, addPluginHashMap, createSource, exit, getDataSourceIcons, getFileFilters, getHelp, getOptionPanelForFilter, getShapeName, getShapesMap, getSources, getTemplates, load, newComponent, newDesktopComponent, 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

sceneTree

protected SceneGraphTree sceneTree

editor

protected SceneGraphEditor editor

pluginManager

protected PluginManager pluginManager

pluginName

protected java.lang.String pluginName

mainBuiltin

protected Syn3DPlugin mainBuiltin

tm

protected SceneGraphModel tm
Constructor Detail

Xith3DPlugin3D

public Xith3DPlugin3D()
Method Detail

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.

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.

newSourceComponent

public void newSourceComponent(NamedElementContainer nec)
Description copied from class: Plugin
Give the plugin an occasion to work at source panel initialisation

Overrides:
newSourceComponent in class Plugin
Parameters:
nec - The sources container

getSceneTree

public SceneGraphTree getSceneTree()

getEditor

public SceneGraphEditor getEditor()

getPluginManager

public PluginManager getPluginManager()