Package org.opensourcephysics.display
Class DataTable.DataTableColumnModel
java.lang.Object
javax.swing.table.DefaultTableColumnModel
org.opensourcephysics.display.DataTable.DataTableColumnModel
- All Implemented Interfaces:
PropertyChangeListener
,Serializable
,EventListener
,ListSelectionListener
,TableColumnModel
- Enclosing class:
- DataTable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class javax.swing.table.DefaultTableColumnModel
changeEvent, columnMargin, columnSelectionAllowed, listenerList, selectionModel, tableColumns, totalColumnWidth
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
convertColumnIndexToModel
(int viewIndex) getColumn
(int columnIndex) Return a DataTableColumn, finalizing its size calculation and creating a new tableColumn, if necessary due to an out-of-bounds calculation.getTableColumn
(int columnIndex) Do not add a new column and do not check for sizing.toString()
Methods inherited from class javax.swing.table.DefaultTableColumnModel
addColumnModelListener, createSelectionModel, fireColumnAdded, fireColumnMarginChanged, fireColumnMoved, fireColumnRemoved, fireColumnSelectionChanged, getColumnCount, getColumnIndex, getColumnIndexAtX, getColumnMargin, getColumnModelListeners, getColumns, getColumnSelectionAllowed, getListeners, getSelectedColumnCount, getSelectedColumns, getSelectionModel, getTotalColumnWidth, moveColumn, propertyChange, recalcWidthCache, removeColumn, removeColumnModelListener, setColumnMargin, setColumnSelectionAllowed, setSelectionModel, valueChanged
-
Method Details
-
convertColumnIndexToModel
public int convertColumnIndexToModel(int viewIndex) - Parameters:
viewIndex
-- Returns:
-
addColumn
- Specified by:
addColumn
in interfaceTableColumnModel
- Overrides:
addColumn
in classDefaultTableColumnModel
-
getColumn
Return a DataTableColumn, finalizing its size calculation and creating a new tableColumn, if necessary due to an out-of-bounds calculation.- Specified by:
getColumn
in interfaceTableColumnModel
- Overrides:
getColumn
in classDefaultTableColumnModel
- Parameters:
columnIndex
-- Returns:
-
getTableColumn
Do not add a new column and do not check for sizing.- Parameters:
columnIndex
-- Returns:
- the indicated column
-
toString
-