public class MatrixTableModelLinear extends AbstractTableModel implements MatrixTableModel
| Modifier and Type | Class and Description |
|---|---|
static class |
MatrixTableModelLinear.MatrixCellRenderer |
| Modifier and Type | Field and Description |
|---|---|
protected double |
defaultValue |
protected MatrixND |
m |
protected List<Object[]> |
mappingRowSems |
protected TableCellRenderer |
renderer |
protected boolean |
showDefault |
listenerList| Constructor and Description |
|---|
MatrixTableModelLinear(MatrixND m,
boolean showDefault) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeMapping() |
int |
getAdditionalColumns()
Get how many additional columns table model need to renderer matrix.
|
int |
getAdditionalRows()
Get 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.class
|
int |
getColumnCount() |
String |
getColumnName(int column)
Return column names.
|
double |
getDefaultValue() |
MatrixND |
getMatrix() |
TableCellRenderer |
getMatrixCellRenderer() |
int |
getRowCount() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
boolean |
isShowDefault() |
void |
setDefaultValue(double defaultValue) |
void |
setMatrix(MatrixND m) |
void |
setShowDefault(boolean showDefault) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTableModelListener, removeTableModelListenerprotected MatrixND m
protected boolean showDefault
protected double defaultValue
protected TableCellRenderer renderer
public MatrixTableModelLinear(MatrixND m, boolean showDefault)
public MatrixND getMatrix()
getMatrix in interface MatrixTableModelpublic void setMatrix(MatrixND m)
setMatrix in interface MatrixTableModelprotected void computeMapping()
public boolean isShowDefault()
public void setShowDefault(boolean showDefault)
showDefault - The showDefault to set.public double getDefaultValue()
public void setDefaultValue(double defaultValue)
defaultValue - The defaultValue to set.public int getRowCount()
getRowCount in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic Object getValueAt(int rowIndex, int columnIndex)
getValueAt in interface TableModelpublic boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelpublic String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic Class<?> getColumnClass(int column)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelcolumn - public TableCellRenderer getMatrixCellRenderer()
getMatrixCellRenderer in interface MatrixTableModelpublic int getAdditionalRows()
MatrixTableModelgetAdditionalRows in interface MatrixTableModelpublic int getAdditionalColumns()
MatrixTableModelgetAdditionalColumns in interface MatrixTableModelCopyright © 2004–2017 CodeLutin. All rights reserved.