cs235MasseyA6
DataVisualiser
 All Classes Files Functions
Public Member Functions | List of all members
Table Class Reference

Public Member Functions

 Table (GUI host)
 Allows the class to reference the correct instance of the main GUI. More...
 
String GetColumnHeading (int columnNo)
 Returns the name of a specific column as a String, based on the column number. More...
 
int Height ()
 Returns the height of the table. More...
 
int Width ()
 Returns the width of the table. More...
 
DefaultTableModel PopulateTable (String[][] dataArray, String[] columnHeadings)
 Populates the table with data. More...
 
ChartData ToChartData ()
 Allows the chart classes to receive the data from the table. More...
 

Constructor & Destructor Documentation

Table.Table ( GUI  host)

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)

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

Here is the call graph for this function:

int Table.Height ( )

Returns the height of the table.

Returns
tableHeight - returns the height of the table of data as an Integer

Here is the call graph for this function:

DefaultTableModel Table.PopulateTable ( String  dataArray[][],
String[]  columnHeadings 
)

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 ( )

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

Here is the call graph for this function:

int Table.Width ( )

Returns the width of the table.

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

Here is the call graph for this function:


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