com.jstatcom.equation
Class SubMatModel
- java.lang.Object
-
- javax.swing.table.DefaultTableColumnModel
-
- com.jstatcom.equation.SubMatModel
-
- All Implemented Interfaces:
- java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, javax.swing.event.ListSelectionListener, javax.swing.table.TableColumnModel
public final class SubMatModel extends javax.swing.table.DefaultTableColumnModelA special table column model for theCoeffTable.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SubMatModel(int part)Creates aSubMatModelfor an index denoting the part and a table.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddColumn(javax.swing.table.TableColumn tc)Adds only those columns that are in the sub matrix range.intgetIndex()Gets the index represented by this part.intgetNumberOfColumns()Gets the number of columns of this table model.voidsetIndex(int arg)Sets the index of this part of the equation.voidsetNumberOfColumns(int arg)Sets the number of columns in this model.-
Methods inherited from class javax.swing.table.DefaultTableColumnModel
addColumnModelListener, getColumn, getColumnCount, getColumnIndex, getColumnIndexAtX, getColumnMargin, getColumnModelListeners, getColumns, getColumnSelectionAllowed, getListeners, getSelectedColumnCount, getSelectedColumns, getSelectionModel, getTotalColumnWidth, moveColumn, propertyChange, removeColumn, removeColumnModelListener, setColumnMargin, setColumnSelectionAllowed, setSelectionModel, valueChanged
-
-
-
-
Constructor Detail
-
SubMatModel
public SubMatModel(int part)
Creates aSubMatModelfor an index denoting the part and a table.- Parameters:
part- index running from 0,...,n
-
-
Method Detail
-
addColumn
public void addColumn(javax.swing.table.TableColumn tc)
Adds only those columns that are in the sub matrix range.- Specified by:
addColumnin interfacejavax.swing.table.TableColumnModel- Overrides:
addColumnin classjavax.swing.table.DefaultTableColumnModel- Parameters:
tc- the column to add
-
getIndex
public int getIndex()
Gets the index represented by this part.- Returns:
- index
-
getNumberOfColumns
public int getNumberOfColumns()
Gets the number of columns of this table model.- Returns:
- col number
-
setIndex
public void setIndex(int arg)
Sets the index of this part of the equation.- Parameters:
arg- index
-
setNumberOfColumns
public void setNumberOfColumns(int arg)
Sets the number of columns in this model.- Parameters:
arg- number of columns
-
-
DMelt 3.0 © DataMelt by jWork.ORG