org.freehep.jas.plugin.tree
Interface FTreeProvider

All Known Implementing Classes:
FTreePlugin

public interface FTreeProvider

The FTreeProvider service provides access to existing or new FTrees and to the FTreeNodeAdapterRegistry with wich FTreeNodeAdapters are to be registered.


Method Summary
 java.lang.String[] namesOfExistingTrees()
          Get the names of the exising FTrees.
 FTree tree()
          Get the provider's default FTree.
 FTree tree(java.lang.String name)
          Get an FTree by name.
 FTreeNodeAdapterRegistry treeNodeAdapterRegistry()
          Get the FTreeNodeAdapterRegistry.
 

Method Detail

tree

public FTree tree()
Get the provider's default FTree.

Returns:
The default FTree for this provider

tree

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

Parameters:
name - The name of the FTree.
Returns:
The corresponding FTree.

namesOfExistingTrees

public java.lang.String[] namesOfExistingTrees()
Get the names of the exising FTrees.

Returns:
The array with the names of the existing FTrees.

treeNodeAdapterRegistry

public FTreeNodeAdapterRegistry treeNodeAdapterRegistry()
Get the FTreeNodeAdapterRegistry. Via the FTreeNodeAdapterRegistry it is possible to register FTreeNodeAdapters and FTreeNodeObjectProviders to shape the behavior of FTreeNodes.

Returns:
The FTreeNodeAdapterRegistry.