nl.astron.lofar.java.gui.plotter
Class PlotSGTImpl

java.lang.Object
  extended by nl.astron.lofar.java.gui.plotter.PlotSGTImpl
All Implemented Interfaces:
IPlot

public class PlotSGTImpl
extends java.lang.Object
implements IPlot

Version:
$Id$
Author:
pompert

Constructor Summary
PlotSGTImpl()
           
 
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
 void finalize()
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlotSGTImpl

public PlotSGTImpl()
Method Detail

finalize

public void finalize()
              throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

createPlot

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

Specified by:
createPlot in interface IPlot
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

public java.util.HashMap getData()
Description copied from interface: IPlot
Returns the current dataset used in the plot

Specified by:
getData in interface IPlot

setData

public void setData(java.util.HashMap newData)
Description copied from interface: IPlot
Sets the dataset used in the plot

Specified by:
setData in interface IPlot
Parameters:
newData - A new set of data

getLegend

public javax.swing.JComponent getLegend(javax.swing.JComponent aPlot)
                                 throws PlotterException
Description copied from interface: IPlot
Create a legend/key using the plot specified

Specified by:
getLegend in interface IPlot
Parameters:
aPlot - A plot JComponent
Throws:
PlotterException