org.freehep.jas.services
Interface PlotFactory

All Known Implementing Classes:
PlotterPlugin

public interface PlotFactory

This interface aims to provide a simple way for plugins to produce plots, without depending on any particular plotter implementation.

Author:
tonyj

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

createPlotterFor

Plotter createPlotterFor(Class dataType)
Returns a plotter which is able to plot the given class of data.


createPlotterFor

Plotter createPlotterFor(Class[] dataType)
Returns a plotter which is able to plot all of the given classes of data.


canCreatePlotterFor

boolean canCreatePlotterFor(Class dataType)
Tests if can create a plotter for the given data type


canCreatePlotterFor

boolean canCreatePlotterFor(Class[] dataType)
Tests if can create a plotter for the given data types


createPage

PlotPage createPage(String name)
Create a page which can be used to display plots.

Parameters:
name - The name, or null for a default name

currentPage

PlotPage currentPage()
Returns the currently selected plot page, or null if no plot page is currently selected.


pages

List pages()
Returns a list of all PlotPage's which are showing.


registerAdapter

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".

Parameters:
adapter - The PlotterAdapter.
from - The class of the objects that can be converted.
to - The class to which the objects can be converted.


Copyright © 2013. All Rights Reserved.