org.freehep.jas.plugin.plotter
Class DefaultPlotter
java.lang.Object
org.freehep.jas.plugin.plotter.DefaultPlotter
- All Implemented Interfaces:
- Plotter, org.freehep.xml.io.XMLIO
public class DefaultPlotter
- extends Object
- implements Plotter, org.freehep.xml.io.XMLIO
- Author:
- tonyj
Method Summary |
void |
clear()
Clear all the data in the plot |
List |
getData()
Returns the list of data objects added to this plotter |
JAS3Plot |
getPlot()
|
void |
plot(Object data,
int mode)
Plot a given data set. |
void |
plot(Object data,
int mode,
Object style,
String options)
|
void |
remove(Object data)
Remove a data item from a plot |
void |
restore(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl)
|
void |
save(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl)
|
Component |
viewable()
Returns a Component that can be used to display a Plotter in some other swing
component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dataList
protected List dataList
DefaultPlotter
public DefaultPlotter(PlotFactory factory)
clear
public void clear()
- Description copied from interface:
Plotter
- Clear all the data in the plot
- Specified by:
clear
in interface Plotter
getPlot
public JAS3Plot getPlot()
plot
public void plot(Object data,
int mode)
- Description copied from interface:
Plotter
- Plot a given data set.
- Specified by:
plot
in interface Plotter
- Parameters:
data
- The data to be plotted. Must be of the class specified when
the plotter was created.
plot
public void plot(Object data,
int mode,
Object style,
String options)
- Specified by:
plot
in interface Plotter
remove
public void remove(Object data)
- Description copied from interface:
Plotter
- Remove a data item from a plot
- Specified by:
remove
in interface Plotter
viewable
public Component viewable()
- Description copied from interface:
Plotter
- Returns a Component that can be used to display a Plotter in some other swing
component.
- Specified by:
viewable
in interface Plotter
restore
public void restore(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl)
- Specified by:
restore
in interface org.freehep.xml.io.XMLIO
save
public void save(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl)
- Specified by:
save
in interface org.freehep.xml.io.XMLIO
getData
public List getData()
- Description copied from interface:
Plotter
- Returns the list of data objects added to this plotter
- Specified by:
getData
in interface Plotter
Copyright © 2013. All Rights Reserved.