|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PlotFactory
This interface aims to provide a simple way for plugins to produce plots, without depending on any particular plotter implementation.
Method Summary | |
---|---|
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 |
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. |
List |
pages()
Returns a list of all PlotPage's which are showing. |
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". |
Method Detail |
---|
Plotter createPlotterFor(Class dataType)
Plotter createPlotterFor(Class[] dataType)
boolean canCreatePlotterFor(Class dataType)
boolean canCreatePlotterFor(Class[] dataType)
PlotPage createPage(String name)
name
- The name, or null for a default namePlotPage currentPage()
List pages()
void registerAdapter(PlotterAdapter adapter, Class from, Class to)
adapter
- The PlotterAdapter.from
- The class of the objects that can be converted.to
- The class to which the objects can be converted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |