Class dataTable.DataTable

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----sTools.SApplet
                                           |
                                           +----dataTable.DataTable

public class DataTable
extends SApplet

Constructor Index

 o DataTable()
 

Method Index

 o addDatum(int, double, double)
Add a data point to the series.
 o clearSeries(int)
Clear the data from a series.
 o getAppletInfo()
 
 o getParameter(String, String)
 
 o getParameterInfo()
 
 o getSeriesWidth(int)
Get the width of the cells in a column.
 o getTableID()
Get the ID for the table.
 o init()
 
 o setAutoRefresh(boolean)
Repaint every time data is added.
 o setDataStride(int, int)
Do not register all data as entries in the table.
 o setDefault()
Clears the data from the grid and sets the stride to 1 for all series.
 o setNumericFormat(int, String)
Set the numeric format for the display of numnbers.
 o setSeriesLabel(int, String)
Set the column header for the series.
 o setSeriesWidth(int, int)
Set the width of the cells in a column.
 o sizeToFit(boolean)
Attempts to fit the size of the grid to the window.
 o start()
 
 o stop()
 

Constructors

 o DataTable

 public DataTable()

Methods

 o getParameter

 public String getParameter(String key,
                            String def)

 o init

 public void init()
Overrides:
init in class Applet

 o start

 public void start()
Overrides:
start in class Applet

 o stop

 public void stop()
Overrides:
stop in class Applet

 o getAppletInfo

 public String getAppletInfo()
Overrides:
getAppletInfo in class Applet

 o getParameterInfo

 public String[][] getParameterInfo()
Overrides:
getParameterInfo in class Applet

 o clearSeries

 public void clearSeries(int s)
Clear the data from a series. Series properties such as color and style remain unchanged.
Parameters:
s - Series ID

 o addDatum

 public void addDatum(int sid,
                      double x,
                      double y)
Add a data point to the series.
Parameters:
id - series ID
x - x value
y - y value

 o getTableID

 public int getTableID()
Get the ID for the table. This ID is used to make a connection to a data source.

 o setAutoRefresh

 public void setAutoRefresh(boolean autoRefresh)
Repaint every time data is added.
Parameters:
autoRefresh - Automatic repaint?

 o sizeToFit

 public void sizeToFit(boolean stf)
Attempts to fit the size of the grid to the window. Works best if the ShowScrollBara parameter is set to false.

 o setDefault

 public void setDefault()
Clears the data from the grid and sets the stride to 1 for all series.

 o setDataStride

 public void setDataStride(int id,
                           int stride)
Do not register all data as entries in the table. This is useful when the data rate is too high. The first dat point is always registered.
Parameters:
id - The series id.
stride - The number of data points to skip before registering.

 o getSeriesWidth

 public int getSeriesWidth(int id)
Get the width of the cells in a column.
Parameters:
id - The series id.
Returns:
s int The width of the cells.

 o setSeriesWidth

 public void setSeriesWidth(int id,
                            int width)
Set the width of the cells in a column.
Parameters:
id - The series id.
width - The width of the cells.

 o setSeriesLabel

 public boolean setSeriesLabel(int series,
                               String str)
Set the column header for the series. Series 0 is the A column. Series 1 is the B column. Etc.
Parameters:
series - The series number.
str - The header.

 o setNumericFormat

 public void setNumericFormat(int id,
                              String str)
Set the numeric format for the display of numnbers.
Parameters:
series - The series number.
str - The format string. For example: %-+6.2f

All Packages  Class Hierarchy  This Package  Previous  Next  Index