|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--iglu.util.ValueSortedMapTableModel
A TableModel for displaying term vectors in a JTable. Items will be shown in order by value, from largest to smallest.
| Field Summary | |
(package private) java.util.LinkedList |
ll
The term vector to show |
(package private) int |
precision
The number of decimal points to show |
(package private) boolean |
reverse
Print out the items in reverse order. |
(package private) ValueSortedMap |
tv
The term vector being displayed. |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
ValueSortedMapTableModel(ValueSortedMap tv)
Creates new TermVectorTableModel |
|
ValueSortedMapTableModel(ValueSortedMap tv,
boolean reverse)
Creates new TermVectorTableModel |
|
ValueSortedMapTableModel(ValueSortedMap tv,
int precision)
Create new TermVectorTableModel. |
|
ValueSortedMapTableModel(ValueSortedMap tv,
int precision,
boolean reverse)
Create new TermVectorTableModel. |
|
| Method Summary | |
void |
fireTableDataChanged()
Recalculates the linked list used to display the information, then calls the super. |
int |
getColumnCount()
The number of columns in the term vector (always 2). |
java.lang.String |
getColumnName(int colNum)
Returns "Term" for column 1, and "Value" for column 2. |
int |
getRowCount()
The number of terms in the TermVector |
java.lang.Object |
getValueAt(int row,
int column)
Gets a specific value for the table. |
private void |
loadLinkedList(ValueSortedMap tv)
Sets up the internal representation of the TermVector |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
int precision
java.util.LinkedList ll
boolean reverse
ValueSortedMap tv
| Constructor Detail |
public ValueSortedMapTableModel(ValueSortedMap tv)
tv -
public ValueSortedMapTableModel(ValueSortedMap tv,
boolean reverse)
tv - The term vector.reverse - Show the items in reverse order.
public ValueSortedMapTableModel(ValueSortedMap tv,
int precision,
boolean reverse)
tv - precision - reverse -
public ValueSortedMapTableModel(ValueSortedMap tv,
int precision)
tv - precision - | Method Detail |
private void loadLinkedList(ValueSortedMap tv)
tv - public int getRowCount()
public int getColumnCount()
public java.lang.String getColumnName(int colNum)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolNum -
public java.lang.Object getValueAt(int row,
int column)
row - column - public void fireTableDataChanged()
fireTableDataChanged in class javax.swing.table.AbstractTableModel
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||