Package org.nuiton.math.matrix.gui
Class MatrixTableModelLinear
java.lang.Object
javax.swing.table.AbstractTableModel
org.nuiton.math.matrix.gui.MatrixTableModelLinear
- All Implemented Interfaces:
Serializable,TableModel,MatrixTableModel
MatrixTableModelLinear.
Created: 22 mars 2006 12:11:46
- Version:
- $Revision$ Last update: $Date$ by : $Author$
- Author:
- poussin
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected MatrixNDprotected TableCellRendererprotected booleanFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidintGet how many additional columns table model need to renderer matrix.intGet how many additional rows table model need to renderer matrix.Class<?> getColumnClass(int column) Par defaut, la classe de la colonne est du type Function.classintgetColumnName(int column) Return column names.doubleintgetValueAt(int rowIndex, int columnIndex) booleanisCellEditable(int rowIndex, int columnIndex) booleanvoidsetDefaultValue(double defaultValue) voidvoidsetShowDefault(boolean showDefault) voidsetValueAt(Object aValue, int rowIndex, int columnIndex) Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.table.TableModel
addTableModelListener, removeTableModelListener
-
Field Details
-
m
-
showDefault
protected boolean showDefault -
defaultValue
protected double defaultValue -
mappingRowSems
-
renderer
-
-
Constructor Details
-
MatrixTableModelLinear
-
-
Method Details
-
getMatrix
- Specified by:
getMatrixin interfaceMatrixTableModel
-
setMatrix
- Specified by:
setMatrixin interfaceMatrixTableModel
-
computeMapping
protected void computeMapping() -
isShowDefault
public boolean isShowDefault()- Returns:
- Returns the showDefault.
-
setShowDefault
public void setShowDefault(boolean showDefault) - Parameters:
showDefault- The showDefault to set.
-
getDefaultValue
public double getDefaultValue()- Returns:
- Returns the defaultValue.
-
setDefaultValue
public void setDefaultValue(double defaultValue) - Parameters:
defaultValue- The defaultValue to set.
-
getRowCount
public int getRowCount()- Specified by:
getRowCountin interfaceTableModel
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCountin interfaceTableModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
getColumnName
Return column names. Try to return i18n column names if possible.- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getColumnClass
Par defaut, la classe de la colonne est du type Function.class- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel- Parameters:
column-
-
getMatrixCellRenderer
- Specified by:
getMatrixCellRendererin interfaceMatrixTableModel
-
getAdditionalRows
public int getAdditionalRows()Description copied from interface:MatrixTableModelGet how many additional rows table model need to renderer matrix.- Specified by:
getAdditionalRowsin interfaceMatrixTableModel- Returns:
- additional rows
-
getAdditionalColumns
public int getAdditionalColumns()Description copied from interface:MatrixTableModelGet how many additional columns table model need to renderer matrix.- Specified by:
getAdditionalColumnsin interfaceMatrixTableModel- Returns:
- additional columns
-