Class EDU.emporia.mathbeans.ParametricTable
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class EDU.emporia.mathbeans.ParametricTable

Object
   |
   +----Component
           |
           +----Container
                   |
                   +----JComponent
                           |
                           +----JScrollPane
                                   |
                                   +----EDU.emporia.mathbeans.ParametricTable

public class ParametricTable
extends JScrollPane
A table to display the values of one or more parametric curves at selected points

Version:
1.0
Author:
Joe Yanik
Since:
7/6/00

Variable Index

 o autoTValue
Keeps track of whether the t-values should be generated automatically or be based on user input
 o columns
The number of columns in the table
 o curve
The vector of curves to be represented by the table
 o editor
The editor to be used as a cell editor.
 o f
A property to appear on the Property List that will correspond to a curve to be added to the table.
 o firstColumn
The Column Model for the first column
 o g
A property to appear on the Property List that will correspond to a curve to be added to the table.
 o graphAdded
Keeps track of whether or not anything has been added to the table yet
 o header
The header for the table.
 o mathField
The MathTextField object used for the editor
 o mathModel
The model to be used to manage the data
 o renderer
The renderer to be used to render the cells.
 o tDelta
The increment between subsequent t-values to be used when autoTValue is true
 o tLabel
The label to appear at the top of the t-column
 o tMin
The minimum t-value represented on when autoTValue is true
 o tValue
The vector of t-values to be used when autoTValue is faalse
 o table
The JTable to be displayed on the JScrollPane
 o tableBorder
The TitledBorder used for the table
 o tcm
The table column model
 o title
The title to appear at the top of the table
 o titledIndex
The index of the column used to determine the title
 o xLabel
The String used to determine the label at the top of the x-columns
 o yLabel
The String used to determine the label at the top of the y-columns

Constructor Index

 o EDU.emporia.mathbeans.ParametricTable()

Method Index

 o addGraph(Graphable)
Adds a graph to be represented on the table
 o addPoint(double)
Adds a point to the table
 o addPoints(double[])
Adds an array of points to the table
 o adjustTable()
Adjusts the parameters of the table when it is resized
 o clearTable()
Clears the table of all data
 o getF()
Gets the f property which will be a parametric curve to be represented on the table
 o getG()
Gets the g property which will be a parametric curve to be represented on the table
 o getTDelta()
Gets the increment between subsequent t-values displayed when autoTValue is true.
 o getTLabel()
Gets the String that will be displayed at the top of the t-column
 o getTMin()
Gets the minimum value of t that will be used when autoTValue is true
 o getXLabel()
Gets the value of xLabel which will determine what will be displayed at the top of the x-columns
 o getYLabel()
Gets the value of yLabel which will determine what will be displayed at the top of the y-columns
 o isAutoTValue()
Gets autoTValue which determines whether or not the values used will be automatically generated or will be based on user input
 o main(String[])
 o removePoint(double)
Removes a point from the table
 o setAutoTValue(boolean)
Sets autoTValue which determines whether or not the values used will be automatically generated or will be based on user input
 o setBounds(int, int, int, int)
Overrides method to adjust table when it is resized
 o setF(Graphable)
Sets the f property which will be a parametric curve to be represented on the table
 o setG(Graphable)
Gets the g property which will be a parametric curve to be represented on the table
 o setSize(int, int)
Overrides method to adjust table when it is resized
 o setTDelta(double)
Sets the increment between subsequent t-values displayed when autoTValue is true.
 o setTLabel(String)
Sets the String that will be displayed at the top of the t-column
 o setTMin(double)
Sets the minimum value of t that will be used when autoTValue is true
 o setTitledIndex(int)
Sets the index of the column to be used to determine the title for the table
 o setXLabel(String)
Sets the value of xLabel which will determine what will be displayed at the top of the x-columns
 o setYLabel(String)
Sets the value of yLabel which will determine what will be displayed at the top of the y-columns
 o updateTable()
Updates the table to reflect changes made in the curves

Variables

 o autoTValue
protected boolean autoTValue
Keeps track of whether the t-values should be generated automatically or be based on user input

 o columns
protected int columns
The number of columns in the table

 o curve
protected java.util.Vector curve
The vector of curves to be represented by the table

 o editor
protected javax.swing.DefaultCellEditor editor
The editor to be used as a cell editor. (Based on MathTextField)

 o f
protected EDU.emporia.mathtools.Graphable f
A property to appear on the Property List that will correspond to a curve to be added to the table.

 o firstColumn
protected javax.swing.table.TableColumn firstColumn
The Column Model for the first column

 o g
protected EDU.emporia.mathtools.Graphable g
A property to appear on the Property List that will correspond to a curve to be added to the table.

 o graphAdded
protected boolean graphAdded
Keeps track of whether or not anything has been added to the table yet

 o header
protected javax.swing.table.JTableHeader header
The header for the table.

 o mathField
protected EDU.emporia.mathbeans.MathTextField mathField
The MathTextField object used for the editor

 o mathModel
protected EDU.emporia.mathbeans.ParametricTable.ParametricTableModel mathModel
The model to be used to manage the data

 o renderer
protected EDU.emporia.mathbeans.MathRenderer renderer
The renderer to be used to render the cells. (Based on MathTextField)

 o tDelta
protected double tDelta
The increment between subsequent t-values to be used when autoTValue is true

 o tLabel
protected java.lang.String tLabel
The label to appear at the top of the t-column

 o tMin
protected double tMin
The minimum t-value represented on when autoTValue is true

 o tValue
protected java.util.Vector tValue
The vector of t-values to be used when autoTValue is faalse

 o table
protected javax.swing.JTable table
The JTable to be displayed on the JScrollPane

 o tableBorder
protected javax.swing.border.TitledBorder tableBorder
The TitledBorder used for the table

 o tcm
protected javax.swing.table.TableColumnModel tcm
The table column model

 o title
protected java.lang.String title
The title to appear at the top of the table

 o titledIndex
protected int titledIndex
The index of the column used to determine the title

 o xLabel
protected java.lang.String xLabel
The String used to determine the label at the top of the x-columns

 o yLabel
protected java.lang.String yLabel
The String used to determine the label at the top of the y-columns

Constructors

 o ParametricTable
public ParametricTable()

Methods

 o addGraph
public void addGraph(Graphable f)
Adds a graph to be represented on the table

Parameters:
f - A parametric curve
 o addPoint
public void addPoint(double t)
Adds a point to the table

Parameters:
t - The t-value for the point to be added
 o addPoints
public void addPoints(double[] tArray)
Adds an array of points to the table

Parameters:
tArray - An array of t-values for the points
 o adjustTable
public void adjustTable()
Adjusts the parameters of the table when it is resized

 o clearTable
public void clearTable()
Clears the table of all data

 o getF
public EDU.emporia.mathtools.Graphable getF()
Gets the f property which will be a parametric curve to be represented on the table

Returns:
The curve that is represented
 o getG
public EDU.emporia.mathtools.Graphable getG()
Gets the g property which will be a parametric curve to be represented on the table

Returns:
The curve that is represented
 o getTDelta
public double getTDelta()
Gets the increment between subsequent t-values displayed when autoTValue is true.

Returns:
The increment between subsequent t-values displayed when autoTValue is true.
 o getTLabel
public java.lang.String getTLabel()
Gets the String that will be displayed at the top of the t-column

Returns:
The String that will be displayed at the top of the t-column
 o getTMin
public double getTMin()
Gets the minimum value of t that will be used when autoTValue is true

Returns:
The minimum value of t that will be used when autoTValue is true
 o getXLabel
public java.lang.String getXLabel()
Gets the value of xLabel which will determine what will be displayed at the top of the x-columns

Returns:
The String to be used to determine what will be displayed at the top of the x-columns
 o getYLabel
public java.lang.String getYLabel()
Gets the value of yLabel which will determine what will be displayed at the top of the y-columns

Returns:
The String to be used to determine what will be displayed at the top of the y-columns
 o isAutoTValue
public boolean isAutoTValue()
Gets autoTValue which determines whether or not the values used will be automatically generated or will be based on user input

Returns:
True if automatic, false otherwise
 o main
public static void main(String[] argv)
 o removePoint
public void removePoint(double t)
Removes a point from the table

Parameters:
t - The t-value of the point to be removed
 o setAutoTValue
public void setAutoTValue(boolean autoTValue)
Sets autoTValue which determines whether or not the values used will be automatically generated or will be based on user input

Parameters:
autoTValue - True if automatic, false otherwise
 o setBounds
public void setBounds(int a,
                      int b,
                      int c,
                      int d)
Overrides method to adjust table when it is resized

Parameters:
a - x-coordinate
b - y-coordinate
c - width
d - height
Overrides:
setBounds in class Component
 o setF
public void setF(Graphable f)
Sets the f property which will be a parametric curve to be represented on the table

Parameters:
f - The curve to be represented
 o setG
public void setG(Graphable g)
Gets the g property which will be a parametric curve to be represented on the table

Parameters:
g - The curve to be represented
 o setSize
public void setSize(int a,
                    int b)
Overrides method to adjust table when it is resized

Parameters:
a - width
b - height
Overrides:
setSize in class Component
 o setTDelta
public void setTDelta(double tDelta)
Sets the increment between subsequent t-values displayed when autoTValue is true.

Parameters:
tDelta - The increment between subsequent t-values displayed when autoTValue is true.
 o setTLabel
public void setTLabel(String tLabel)
Sets the String that will be displayed at the top of the t-column

Parameters:
tLabel - The String that will be displayed at the top of the t-column
 o setTMin
public void setTMin(double tMin)
Sets the minimum value of t that will be used when autoTValue is true

Parameters:
tMin - The minimum value of t that will be used when autoTValue is true
 o setTitledIndex
public void setTitledIndex(int j)
Sets the index of the column to be used to determine the title for the table

Parameters:
j - The index of the column to be used to determine the title
 o setXLabel
public void setXLabel(String xLabel)
Sets the value of xLabel which will determine what will be displayed at the top of the x-columns

Parameters:
xLabel - The String to be used to determine what will be displayed at the top of the x-columns
 o setYLabel
public void setYLabel(String yLabel)
Sets the value of yLabel which will determine what will be displayed at the top of the y-columns

Parameters:
yLabel - The String to be used to determine what will be displayed at the top of the y-columns
 o updateTable
public void updateTable()
Updates the table to reflect changes made in the curves


All Packages  Class Hierarchy  This Package  Previous  Next  Index