|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGridView.TwoDPlotManager
public class TwoDPlotManager
TwoDPlotManager class provides a unified interface to manage multiple two D plots, the plots can be shown as tabs, or in a drop down box: that decision is made by the Viewer class (the top level GUI). TwoDPlotManager class provides methods to perform operations on current plot, to close plots, to add new plots and to perform plot specific operations. Some of those operations could create new plots (eg, performing a discrete FFT on a data set creates the Fourier transform in a new plot window).
TwoDPlotter
Field Summary | |
---|---|
private int |
m_iCurrPlotIndex
Index of current plot. |
private java.util.ArrayList<TwoDPlotter<java.lang.Float>> |
m_PlotList
|
Constructor Summary | |
---|---|
TwoDPlotManager()
|
|
TwoDPlotManager(int numPlots)
|
Method Summary | |
---|---|
TwoDPlotter<java.lang.Float> |
AddPlot()
Adds a plot to the end of list, and sets it to be the current plot. |
TwoDPlotter<java.lang.Float> |
AddPlot(int pos)
Adds a plot at specified position in the list and sets it to be the current plot. |
void |
AddPlots(int numPlots)
|
boolean |
DeleteCurrentPlot()
Delete the current plot. |
boolean |
DeletePlot(int indx)
Delete the plot with specified index. |
TwoDPlotter<java.lang.Float> |
GetCurrPlot()
|
int |
GetCurrPlotIndex()
|
int |
GetNumPlots()
|
TwoDPlotter<java.lang.Float> |
GetPlot(int indx)
|
boolean |
SetCurrPlot(int indx)
Set current plot index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.ArrayList<TwoDPlotter<java.lang.Float>> m_PlotList
private int m_iCurrPlotIndex
0 <= m_iCurrPlotIndex < m_PlotList.size()
For empty plot list, this is -1.
Constructor Detail |
---|
public TwoDPlotManager()
public TwoDPlotManager(int numPlots)
Method Detail |
---|
public boolean SetCurrPlot(int indx)
public int GetCurrPlotIndex()
public TwoDPlotter<java.lang.Float> GetCurrPlot()
public TwoDPlotter<java.lang.Float> GetPlot(int indx)
public TwoDPlotter<java.lang.Float> AddPlot()
public TwoDPlotter<java.lang.Float> AddPlot(int pos)
pos
- Position in the plot list.
public void AddPlots(int numPlots)
public boolean DeletePlot(int indx)
indx
- Index of plot to be deleted.
public boolean DeleteCurrentPlot()
public int GetNumPlots()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |