public class PlotterPlugin extends org.freehep.application.studio.Plugin implements PlotFactory, PlotterProvider, XMLPluginIO
Modifier and Type | Class and Description |
---|---|
class |
PlotterPlugin.PlotterCommands |
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 |
---|
PlotterPlugin() |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreatePlotterFor(Class dataType)
Tests if can create a plotter for the given data type
|
boolean |
canCreatePlotterFor(Class[] dataType)
Tests if can create a plotter for the given data types
|
Plotter |
create()
Create a plotter.
|
PlotPage |
createPage(String name)
Create a page which can be used to display plots.
|
Plotter |
createPlotterFor(Class dataType)
Returns a plotter which is able to plot the given class of data.
|
Plotter |
createPlotterFor(Class[] dataType)
Returns a plotter which is able to plot all of the given classes of data.
|
PlotPage |
currentPage()
Returns the currently selected plot page,
or null if no plot page is currently selected.
|
void |
init() |
List |
pages()
Returns a list of all PlotPage's which are showing.
|
protected PlotterAdapterLookup |
plotterAdapterLookup() |
void |
registerAdapter(PlotterAdapter adapter,
Class from,
Class to)
Register a Plotter adapter that can convert an Object of class "from"
to an object of class "to".
|
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) |
boolean |
supports(Class klass)
Test if a given class of data is supported
|
public void init() throws SAXException, IOException
init
in class org.freehep.application.studio.Plugin
SAXException
IOException
protected PlotterAdapterLookup plotterAdapterLookup()
public PlotPage createPage(String name)
PlotFactory
createPage
in interface PlotFactory
name
- The name, or null for a default namepublic Plotter createPlotterFor(Class dataType)
PlotFactory
createPlotterFor
in interface PlotFactory
public Plotter createPlotterFor(Class[] dataType)
PlotFactory
createPlotterFor
in interface PlotFactory
public boolean canCreatePlotterFor(Class dataType)
PlotFactory
canCreatePlotterFor
in interface PlotFactory
public boolean canCreatePlotterFor(Class[] dataType)
PlotFactory
canCreatePlotterFor
in interface PlotFactory
public PlotPage currentPage()
PlotFactory
currentPage
in interface PlotFactory
public Plotter create()
PlotterProvider
create
in interface PlotterProvider
public boolean supports(Class klass)
PlotterProvider
supports
in interface PlotterProvider
klass
- The type of data to test fortrue
if this data type is supportedpublic void registerAdapter(PlotterAdapter adapter, Class from, Class to)
PlotFactory
registerAdapter
in interface PlotFactory
adapter
- The PlotterAdapter.from
- The class of the objects that can be converted.to
- The class to which the objects can be converted.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 List pages()
PlotFactory
pages
in interface PlotFactory
Copyright © 2014. All Rights Reserved.