|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.astron.lofar.java.gui.plotter.PlotSGTImpl
public class PlotSGTImpl
This class provides an implementation of IPlot for use with the SGT package.
It manages the calls to create plots etc. in a way that SGT can support and handle.
This software uses (parts of) the SGT graphics library.
SGT was developed and is maintained by Donald W. Denbo,
National Oceanic and Atmospheric Administration.
E-Mail : Donald.W.Denbo@noaa.gov
Website: http://www.epic.noaa.gov/java/sgt
Constructor Summary | |
---|---|
PlotSGTImpl()
Creates a new instance of PlotSGTImpl |
Method Summary | |
---|---|
javax.swing.JComponent |
createPlot(int type,
java.lang.String name,
java.util.HashMap data,
boolean separateLegend)
Creates a SGT JPlotLayout plot using several key arguments |
void |
finalize()
Cleans up the SGT plot(s) present in memory and other instance variables |
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 SGT plot specified. |
javax.swing.JComponent |
modifyPlot(javax.swing.JComponent aPlot,
java.util.HashMap data)
Modifies a given SGT plot using a given dataset. |
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 |
---|
public PlotSGTImpl()
Method Detail |
---|
public void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public javax.swing.JComponent modifyPlot(javax.swing.JComponent aPlot, java.util.HashMap data) throws PlotterException
modifyPlot
in interface IPlot
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.public javax.swing.JComponent createPlot(int type, java.lang.String name, java.util.HashMap data, boolean separateLegend) throws PlotterException
createPlot
in interface IPlot
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.public java.util.HashMap getData()
getData
in interface IPlot
public void setData(java.util.HashMap newData)
setData
in interface IPlot
newData
- A new set of datapublic javax.swing.JComponent getLegend(javax.swing.JComponent aPlot) throws PlotterException
getLegend
in interface IPlot
aPlot
- A plot JComponent (must be a SGT JPlotLayout!)
PlotterException
- will be thrown if the legend could not be generated for the given SGT plot.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |