nl.astron.lofar.java.gui.plotter
Interface IPlot

All Known Implementing Classes:
PlotSGTImpl

public interface IPlot

Version:
$Id$
Author:
pompert

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
 void setData(java.util.HashMap newData)
          Sets the dataset used in the plot
 

Method Detail

createPlot

javax.swing.JComponent createPlot(int type,
                                  java.lang.String name,
                                  java.util.HashMap data,
                                  boolean separateLegend)
                                  throws PlotterException
Creates a plot using several key arguments

Parameters:
type - Type of plot as dictated by PlotConstants.PLOT_*
name - Name to be given to the plot
data - The dataset to be used to create the plot
separateLegend - Indicates the user's need for a separate legend
Throws:
PlotterException

getData

java.util.HashMap getData()
Returns the current dataset used in the plot


setData

void setData(java.util.HashMap newData)
Sets the dataset used in the plot

Parameters:
newData - A new set of data

getLegend

javax.swing.JComponent getLegend(javax.swing.JComponent aPlot)
                                 throws PlotterException
Create a legend/key using the plot specified

Parameters:
aPlot - A plot JComponent
Throws:
PlotterException