com.jstatcom.equation
Class SubMatModel

java.lang.Object
  extended by javax.swing.table.DefaultTableColumnModel
      extended by 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.DefaultTableColumnModel

A special table column model for the CoeffTable.

Author:
A. Benkwitz, Markus Kraetzig
See Also:
Serialized Form

Constructor Summary
SubMatModel(int part)
          Creates a SubMatModel for an index denoting the part and a table.
 
Method Summary
 void addColumn(javax.swing.table.TableColumn tc)
          Adds only those columns that are in the sub matrix range.
 int getIndex()
          Gets the index represented by this part.
 int getNumberOfColumns()
          Gets the number of columns of this table model.
 void setIndex(int arg)
          Sets the index of this part of the equation.
 void setNumberOfColumns(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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubMatModel

public SubMatModel(int part)
Creates a SubMatModel for 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:
addColumn in interface javax.swing.table.TableColumnModel
Overrides:
addColumn in class javax.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