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
-
autoTValue
- Keeps track of whether the t-values should be generated automatically or be
based on user input
-
columns
- The number of columns in the table
-
curve
- The vector of curves to be represented by the table
-
editor
- The editor to be used as a cell editor.
-
f
- A property to appear on the Property List that will correspond to a curve
to be added to the table.
-
firstColumn
- The Column Model for the first column
-
g
- A property to appear on the Property List that will correspond to a curve
to be added to the table.
-
graphAdded
- Keeps track of whether or not anything has been added to the table yet
-
header
- The header for the table.
-
mathField
- The MathTextField object used for the editor
-
mathModel
- The model to be used to manage the data
-
renderer
- The renderer to be used to render the cells.
-
tDelta
- The increment between subsequent t-values to be used when autoTValue is true
-
tLabel
- The label to appear at the top of the t-column
-
tMin
- The minimum t-value represented on when autoTValue is true
-
tValue
- The vector of t-values to be used when autoTValue is faalse
-
table
- The JTable to be displayed on the JScrollPane
-
tableBorder
- The TitledBorder used for the table
-
tcm
- The table column model
-
title
- The title to appear at the top of the table
-
titledIndex
- The index of the column used to determine the title
-
xLabel
- The String used to determine the label at the top of the x-columns
-
yLabel
- The String used to determine the label at the top of the y-columns
-
EDU.emporia.mathbeans.ParametricTable()
-
-
addGraph(Graphable)
- Adds a graph to be represented on the table
-
addPoint(double)
- Adds a point to the table
-
addPoints(double[])
- Adds an array of points to the table
-
adjustTable()
- Adjusts the parameters of the table when it is resized
-
clearTable()
- Clears the table of all data
-
getF()
- Gets the f property which will be a parametric curve to be represented on the table
-
getG()
- Gets the g property which will be a parametric curve to be represented on the table
-
getTDelta()
- Gets the increment between subsequent t-values displayed when autoTValue is true.
-
getTLabel()
- Gets the String that will be displayed at the top of the t-column
-
getTMin()
- Gets the minimum value of t that will be used when autoTValue is true
-
getXLabel()
- Gets the value of xLabel which will determine what will be displayed at the top of
the x-columns
-
getYLabel()
- Gets the value of yLabel which will determine what will be displayed at the top of
the y-columns
-
isAutoTValue()
- Gets autoTValue which determines whether or not the values used will be automatically
generated or will be based on user input
-
main(String[])
-
-
removePoint(double)
- Removes a point from the table
-
setAutoTValue(boolean)
- Sets autoTValue which determines whether or not the values used will be automatically
generated or will be based on user input
-
setBounds(int, int, int, int)
- Overrides method to adjust table when it is resized
-
setF(Graphable)
- Sets the f property which will be a parametric curve to be represented on the table
-
setG(Graphable)
- Gets the g property which will be a parametric curve to be represented on the table
-
setSize(int, int)
- Overrides method to adjust table when it is resized
-
setTDelta(double)
- Sets the increment between subsequent t-values displayed when autoTValue is true.
-
setTLabel(String)
- Sets the String that will be displayed at the top of the t-column
-
setTMin(double)
- Sets the minimum value of t that will be used when autoTValue is true
-
setTitledIndex(int)
- Sets the index of the column to be used to determine the title for the table
-
setXLabel(String)
- Sets the value of xLabel which will determine what will be displayed at the top of
the x-columns
-
setYLabel(String)
- Sets the value of yLabel which will determine what will be displayed at the top of
the y-columns
-
updateTable()
- Updates the table to reflect changes made in the curves
autoTValue
protected boolean autoTValue
- Keeps track of whether the t-values should be generated automatically or be
based on user input
columns
protected int columns
- The number of columns in the table
curve
protected java.util.Vector curve
- The vector of curves to be represented by the table
editor
protected javax.swing.DefaultCellEditor editor
- The editor to be used as a cell editor. (Based on MathTextField)
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.
firstColumn
protected javax.swing.table.TableColumn firstColumn
- The Column Model for the first column
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.
graphAdded
protected boolean graphAdded
- Keeps track of whether or not anything has been added to the table yet
header
protected javax.swing.table.JTableHeader header
- The header for the table.
mathField
protected EDU.emporia.mathbeans.MathTextField mathField
- The MathTextField object used for the editor
mathModel
protected EDU.emporia.mathbeans.ParametricTable.ParametricTableModel mathModel
- The model to be used to manage the data
renderer
protected EDU.emporia.mathbeans.MathRenderer renderer
- The renderer to be used to render the cells. (Based on MathTextField)
tDelta
protected double tDelta
- The increment between subsequent t-values to be used when autoTValue is true
tLabel
protected java.lang.String tLabel
- The label to appear at the top of the t-column
tMin
protected double tMin
- The minimum t-value represented on when autoTValue is true
tValue
protected java.util.Vector tValue
- The vector of t-values to be used when autoTValue is faalse
table
protected javax.swing.JTable table
- The JTable to be displayed on the JScrollPane
tableBorder
protected javax.swing.border.TitledBorder tableBorder
- The TitledBorder used for the table
tcm
protected javax.swing.table.TableColumnModel tcm
- The table column model
title
protected java.lang.String title
- The title to appear at the top of the table
titledIndex
protected int titledIndex
- The index of the column used to determine the title
xLabel
protected java.lang.String xLabel
- The String used to determine the label at the top of the x-columns
yLabel
protected java.lang.String yLabel
- The String used to determine the label at the top of the y-columns
ParametricTable
public ParametricTable()
addGraph
public void addGraph(Graphable f)
- Adds a graph to be represented on the table
- Parameters:
- f - A parametric curve
addPoint
public void addPoint(double t)
- Adds a point to the table
- Parameters:
- t - The t-value for the point to be added
addPoints
public void addPoints(double[] tArray)
- Adds an array of points to the table
- Parameters:
- tArray - An array of t-values for the points
adjustTable
public void adjustTable()
- Adjusts the parameters of the table when it is resized
clearTable
public void clearTable()
- Clears the table of all data
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
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
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.
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
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
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
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
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
main
public static void main(String[] argv)
removePoint
public void removePoint(double t)
- Removes a point from the table
- Parameters:
- t - The t-value of the point to be removed
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
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
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
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
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
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.
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
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
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
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
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
updateTable
public void updateTable()
- Updates the table to reflect changes made in the curves
All Packages Class Hierarchy This Package Previous Next Index