org.freehep.jas.plugin.tree
Class FTreePlugin

java.lang.Object
  extended byPlugin
      extended byorg.freehep.jas.plugin.tree.FTreePlugin
All Implemented Interfaces:
FTreeProvider

public class FTreePlugin
extends Plugin
implements FTreeProvider

See Also:
Serialized Form

Constructor Summary
FTreePlugin()
           
 
Method Summary
 boolean apply(javax.swing.JComponent panel)
           
 javax.swing.JComponent component()
           
protected  void init()
           
 java.lang.String[] namesOfExistingTrees()
          Get the names of the exising FTrees.
 java.lang.String[] path()
           
 int restore(int level, XMLIOManager manager, Element el)
           
 void save(XMLIOManager manager, Element el)
           
 FTree tree()
          Get the provider's default FTree.
 FTree tree(java.lang.String name)
          Get an FTree by name.
 FTreeNodeAdapterRegistry treeNodeAdapterRegistry()
          Get the FTreeNodeAdapterRegistry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTreePlugin

public FTreePlugin()
Method Detail

init

protected void init()
             throws org.xml.sax.SAXException,
                    java.io.IOException
Throws:
org.xml.sax.SAXException
java.io.IOException

treeNodeAdapterRegistry

public FTreeNodeAdapterRegistry treeNodeAdapterRegistry()
Description copied from interface: FTreeProvider
Get the FTreeNodeAdapterRegistry. Via the FTreeNodeAdapterRegistry it is possible to register FTreeNodeAdapters and FTreeNodeObjectProviders to shape the behavior of FTreeNodes.

Specified by:
treeNodeAdapterRegistry in interface FTreeProvider
Returns:
The FTreeNodeAdapterRegistry.

namesOfExistingTrees

public java.lang.String[] namesOfExistingTrees()
Description copied from interface: FTreeProvider
Get the names of the exising FTrees.

Specified by:
namesOfExistingTrees in interface FTreeProvider
Returns:
The array with the names of the existing FTrees.

tree

public FTree tree()
Description copied from interface: FTreeProvider
Get the provider's default FTree.

Specified by:
tree in interface FTreeProvider
Returns:
The default FTree for this provider

tree

public FTree tree(java.lang.String name)
Description copied from interface: FTreeProvider
Get an FTree by name. If the tree for the given name does not exist, a new one is created.

Specified by:
tree in interface FTreeProvider
Parameters:
name - The name of the FTree.
Returns:
The corresponding FTree.

restore

public int restore(int level,
                   XMLIOManager manager,
                   Element el)

save

public void save(XMLIOManager manager,
                 Element el)

apply

public boolean apply(javax.swing.JComponent panel)

component

public javax.swing.JComponent component()

path

public java.lang.String[] path()