My Project
 All Classes Files Functions
Public Member Functions | List of all members
Table Class Reference

Public Member Functions

 Table (GUI host)
 
String GetColumnHeading (int columnNo)
 
int Height ()
 
int Width ()
 
DefaultTableModel PopulateTable (String[][] dataArray, String[] columnHeadings)
 
ChartData ToChartData ()
 

Constructor & Destructor Documentation

Table.Table ( GUI  host)
inline

Allows the class to reference the correct instance of the main GUI

Parameters
host- instance of the main GUI

Member Function Documentation

String Table.GetColumnHeading ( int  columnNo)
inline

Returns the name of a specific column as a String, based on the column number

Parameters
columnNo- the number of the column to get the heading of
Returns
columnHeading - returns the column heading as String
int Table.Height ( )
inline

Returns the height of the table

Returns
tableHeight - returns the height of the table of data as an Integer
DefaultTableModel Table.PopulateTable ( String  dataArray[][],
String[]  columnHeadings 
)
inline

Populates the table with data

Parameters
dataArray- an array of Strings, with each string being a cell of data
columnHeadings- an array of String column headings
Returns
boolean - success of method
model - returns the table
ChartData Table.ToChartData ( )
inline

Allows the chart classes to receive the data from the table

Returns
model - returns the current contents of the table as a type of ChartData
int Table.Width ( )
inline

Returns the width of the table

Returns
tableWidth - returns the width of the table of data as an Integer

The documentation for this class was generated from the following file: