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

DataTable
public DataTable()

getParameter
public String getParameter(String key,
String def)

init
public void init()
- Overrides:
- init in class Applet

start
public void start()
- Overrides:
- start in class Applet

stop
public void stop()
- Overrides:
- stop in class Applet

getAppletInfo
public String getAppletInfo()
- Overrides:
- getAppletInfo in class Applet

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

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

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

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

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

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.

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

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.

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.

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.

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.

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