ElVis Java Interface

sv.graph
Class DataTable

java.lang.Object
  extended bysv.graph.Fx
      extended bysv.graph.DataTable
All Implemented Interfaces:
java.io.Serializable

public class DataTable
extends Fx

A DataTable contains a grid of cells. Each cell can contain a string, an integer, a float, or a double. The first row of cells is used as the column header values. All cells are non-editable. The column width and column order can be interactively changed in the display.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class sv.graph.Fx
ALGEBRAIC, AUTOMATIC, LINEAR, LOGARITHMIC, SCIENTIFIC, shot, units
 
Constructor Summary
DataTable(int r, int c)
          Create a DataTable.
DataTable(java.lang.String graphName)
           
 
Method Summary
 void setValue(int row, int column, double d)
          Put a double into a cell.
 void setValue(int row, int column, float f)
          Put a float into a cell.
 void setValue(int row, int column, int i)
          Put an integer into a cell.
 void setValue(int row, int column, java.lang.String s)
          Put a string into a cell.
 
Methods inherited from class sv.graph.Fx
addDataset, addLabel, addLegendTitle, findClosestDataset, getLegendTitle, getTitleLabel, getXLabel, getXNumberStyle, getXRange, getYLabel, getYNumberStyle, getYRange, isLegend, isShowLines, isShowMarkers, isXGridlines, isYGridlines, setLegendTitle, setLocation, setPlotOrigin, setPlotSize, setScalable, setTitleLabel, setTitleLabel, setXLabel, setXLabel, setXNumberStyle, setXRange, setYLabel, setYLabel, setYLabel, setYNumberStyle, setYRange, showGridlines, showLegend, showLines, showMarkers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTable

public DataTable(java.lang.String graphName)

DataTable

public DataTable(int r,
                 int c)
Create a DataTable.

Parameters:
r - - The number of rows in the table.
c - - The number of columns in the table.
Method Detail

setValue

public void setValue(int row,
                     int column,
                     java.lang.String s)
Put a string into a cell.

Parameters:
row - - The row number of the cell.
column - - The column number of the cell.

setValue

public void setValue(int row,
                     int column,
                     int i)
Put an integer into a cell.

Parameters:
row - - The row number of the cell.
column - - The column number of the cell.

setValue

public void setValue(int row,
                     int column,
                     float f)
Put a float into a cell.

Parameters:
row - - The row number of the cell.
column - - The column number of the cell.

setValue

public void setValue(int row,
                     int column,
                     double d)
Put a double into a cell.

Parameters:
row - - The row number of the cell.
column - - The column number of the cell.

ElVis Java Interface