public class DefaultPlotter extends Object implements Plotter, org.freehep.xml.io.XMLIO
Plotter
that can display objects of type JAS3DataSource
.
Objects of other types can be plotted if a PlotterAdapter
capable of
converting those objects into instances of JAS3DataSource
is registered
with PlotterPlugin
adapter lookup.Constructor and Description |
---|
DefaultPlotter(PlotFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all data from this plot.
|
List<Object> |
getData()
Returns the list of data objects added to this plot.
|
JAS3Plot |
getPlot()
Returns the viewable component of this plot.
|
void |
plot(Object data,
int mode)
Displays the specified object in this plot.
|
void |
plot(Object data,
int mode,
Object style,
String options)
Displays the specified object in this plot.
|
void |
remove(Object data)
Currently unimplemented.
|
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 this plot in some other swing component.
|
public DefaultPlotter(PlotFactory factory)
public JAS3Plot getPlot()
public void plot(Object data, int mode)
Plotter
public void plot(Object data, int mode, Object style, String options)
Plotter
public void clear()
Plotter
public void remove(Object data)
public Component viewable()
Plotter
public List<Object> getData()
Plotter
public void restore(org.freehep.xml.io.XMLIOManager xmlioManager, org.jdom.Element nodeEl)
restore
in interface org.freehep.xml.io.XMLIO
public void save(org.freehep.xml.io.XMLIOManager xmlioManager, org.jdom.Element nodeEl)
save
in interface org.freehep.xml.io.XMLIO
Copyright © 2016. All rights reserved.