|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPlot
This interface forms the communications contract between the plotter classes and any possible plotter graphics framework using a class that implements this interface.
| Method Summary | |
|---|---|
javax.swing.JComponent |
createPlot(int type,
java.lang.String name,
java.util.HashMap data,
boolean separateLegend)
Creates a plot using several key arguments |
java.util.HashMap |
getData()
Returns the current dataset used in the plot |
javax.swing.JComponent |
getLegend(javax.swing.JComponent aPlot)
Create a legend/key using the plot specified. |
javax.swing.JComponent |
modifyPlot(javax.swing.JComponent aPlot,
java.util.HashMap data)
Modifies a given plot using a given dataset. |
void |
setData(java.util.HashMap newData)
Sets the dataset used in the plot |
| Method Detail |
|---|
javax.swing.JComponent createPlot(int type,
java.lang.String name,
java.util.HashMap data,
boolean separateLegend)
throws PlotterException
type - Type of plot as dictated by PlotConstants.PLOT_*name - Name to be given to the plotdata - The dataset to be used to create the plotseparateLegend - Indicates the user's need for a separate legend
PlotterException - will be thrown if the plot could not be generated for any reason.
javax.swing.JComponent modifyPlot(javax.swing.JComponent aPlot,
java.util.HashMap data)
throws PlotterException
aPlot - A plot JComponentdata - The data to be displayed in the plot.
PlotterException - will be thrown if the plot could not be generated for any reason.java.util.HashMap getData()
void setData(java.util.HashMap newData)
newData - A new set of data
javax.swing.JComponent getLegend(javax.swing.JComponent aPlot)
throws PlotterException
aPlot - A plot JComponent
PlotterException - will be thrown if the legend could not be generated for the given JComponent.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||