|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--s2iConfigTableModel
A TableModel implementation used by the s2iConfigureNodes class. It parses a Spice circuit to determine the top-level subckt terminals that are unconnected, and must be configured. * @author Anish Malhotra, Cadence Design Systems
Field Summary | |
private static java.lang.String[] |
colNames
|
private static java.lang.Object[][] |
data
|
private static java.lang.Object[][] |
data2
|
private static int |
data2RowCtr
|
private static java.util.Hashtable |
elemNames
|
private static int |
FIFTY
|
private static int |
HUNDRED
|
private static boolean |
marked
|
private static int |
maxCol
|
private static int |
rowCtr
|
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
s2iConfigTableModel()
|
Method Summary | |
void |
addInstance(java.lang.String entry)
Add a row to the table data by parsing the row data in String form. |
java.util.Vector |
archive()
Convert the table data to a vector of row Strings, ready for storing. |
int |
getColumnCount()
Get the number of columns in the table (fixed at 6). |
java.lang.String |
getColumnName(int col)
Get the name of a column by position. |
java.lang.String |
getMaxVoltage(int row)
Get the maximum mode termination voltage value of a Float node by row position. |
java.lang.String |
getMinVoltage(int row)
Get the minimum mode termination voltage value of a Float node by row position. |
java.lang.String |
getNode(int row)
Get the name of a node by row position. |
java.lang.String |
getPinType(int row)
Get the pin type of a node by row position. |
java.lang.String |
getResistance(int row)
Get the termination resistance value of a Float node by row position. |
int |
getRowCount()
Get the number of rows in the table, equal to the number of top-level unconnected subckt terminals. |
java.lang.String |
getTypVoltage(int row)
Get the typical mode termination voltage value of a Float node by row position. |
java.lang.Object |
getValueAt(int row,
int col)
Get the value of a table cell by position. |
boolean |
isCellEditable(int row,
int col)
Determine if a cell can be edited by the user. |
private boolean |
isCellValid(int row,
int col)
Determine if the data at a cell location is valid. |
static void |
main(java.lang.String[] arg)
Main routine for testing. |
void |
mark()
Copy the table data to a buffer, used for restoring later. |
void |
printdataNcol()
Print the table data to stdout. |
void |
restore()
Restore the table data from the mark buffer. |
void |
setValueAt(java.lang.Object value,
int row,
int col)
Set a cell value. |
void |
updateData(java.util.Enumeration elem)
The core data of the tree is stored in the 2D array of objects. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener,
findColumn,
fireTableCellUpdated,
fireTableChanged,
fireTableDataChanged,
fireTableRowsDeleted,
fireTableRowsInserted,
fireTableRowsUpdated,
fireTableStructureChanged,
getColumnClass,
removeTableModelListener |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static final int FIFTY
private static final int HUNDRED
private static java.lang.Object[][] data
private static java.lang.Object[][] data2
private static java.util.Hashtable elemNames
private static boolean marked
private static java.lang.String[] colNames
private static int rowCtr
private static int data2RowCtr
private static final int maxCol
Constructor Detail |
public s2iConfigTableModel()
Method Detail |
public int getColumnCount()
public int getRowCount()
public java.lang.String getColumnName(int col)
col
- The position of the column.public java.lang.Object getValueAt(int row, int col)
row
- The row position of the cell.col
- The column position of the cell.public java.lang.String getNode(int row)
row
- The row position of the node.public java.lang.String getPinType(int row)
row
- The row position of the node.public java.lang.String getResistance(int row)
row
- The row position of the node.public java.lang.String getTypVoltage(int row)
row
- The row position of the node.public java.lang.String getMinVoltage(int row)
row
- The row position of the node.public java.lang.String getMaxVoltage(int row)
row
- The row position of the node.private boolean isCellValid(int row, int col)
row
- The row position of the node.public void updateData(java.util.Enumeration elem)
elem
- The Enumeration of elements to update the table for.public void addInstance(java.lang.String entry)
entry
- The row data in String form.public void printdataNcol()
public java.util.Vector archive()
public void mark()
public void restore()
public boolean isCellEditable(int row, int col)
row
- The cell row number.col
- The cell column number.public void setValueAt(java.lang.Object value, int row, int col)
value
- The value to store into the cell.row
- The cell row number.col
- The cell column number.public static void main(java.lang.String[] arg)
arg
- unused
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |