public class FTreePlugin extends org.freehep.application.studio.Plugin implements FTreeProvider, XMLPluginIO, PreferencesTopic
RESTORE_DATA, RESTORE_DONE, RESTORE_FINALIZE, RESTORE_PAGES, RESTORE_PLOT_DATA_SOURCES, RESTORE_PLOTS_IN_PAGES, RESTORE_TREE_OBJECTS, RESTORE_TREE_STRUCTURE
Constructor and Description |
---|
FTreePlugin() |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(JComponent panel)
Called when the user pushes the apply button in the preferences dialog.
|
JComponent |
component()
Get the component to display in the preferences dialog
|
protected void |
init() |
String[] |
namesOfExistingTrees()
Get the names of the exising FTrees.
|
String[] |
path()
Specifies where in the preferences tree this item should appear.
|
int |
restore(int level,
org.freehep.xml.io.XMLIOManager manager,
org.jdom.Element el)
level is the level at which the restore should be performed.
|
void |
save(org.freehep.xml.io.XMLIOManager manager,
org.jdom.Element el) |
FTree |
tree()
Get the provider's default FTree.
|
FTree |
tree(String name)
Get an FTree by name.
|
FTreeNodeAdapterRegistry |
treeNodeAdapterRegistry()
Get the FTreeNodeAdapterRegistry.
|
protected void init() throws SAXException, IOException
init
in class org.freehep.application.studio.Plugin
SAXException
IOException
public FTreeNodeAdapterRegistry treeNodeAdapterRegistry()
FTreeProvider
treeNodeAdapterRegistry
in interface FTreeProvider
public String[] namesOfExistingTrees()
FTreeProvider
namesOfExistingTrees
in interface FTreeProvider
public FTree tree()
FTreeProvider
tree
in interface FTreeProvider
public FTree tree(String name)
FTreeProvider
tree
in interface FTreeProvider
name
- The name of the FTree.public int restore(int level, org.freehep.xml.io.XMLIOManager manager, org.jdom.Element el)
XMLPluginIO
restore
in interface XMLPluginIO
public void save(org.freehep.xml.io.XMLIOManager manager, org.jdom.Element el)
save
in interface XMLPluginIO
public boolean apply(JComponent panel)
PreferencesTopic
apply
in interface PreferencesTopic
panel
- The component currently being displayedPreferencesTopic.component()
public JComponent component()
PreferencesTopic
component
in interface PreferencesTopic
public String[] path()
PreferencesTopic
path
in interface PreferencesTopic
Copyright © 2016. All rights reserved.