|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
jigcell.compare.ui.BasicTable.BasicTableModel
jigcell.compare.compare2.Compare2Model
public class Compare2Model
Table model for Compare^2.
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jigcell.compare.ui.BasicTable.BasicTableModel |
|---|
BasicTable.BasicTableModel.Marker |
| Field Summary | |
|---|---|
protected boolean |
allowThresholdEdit
Whether threholds can be edited |
BasicTable.BasicTableModel.Marker |
COLUMN_COMPARISONTYPE
Comparison type column |
BasicTable.BasicTableModel.Marker |
COLUMN_NAME
Name column |
BasicTable.BasicTableModel.Marker |
COLUMN_THRESHOLD
Threshold column |
protected Compare |
compare
Comparator for model users |
protected java.util.Map |
comparisonNames
Map[IResultSetMap,String] of comparisons to the set name |
protected java.util.List |
comparisons
List[IResultSetMap] of comparisons |
protected java.util.Map |
experimentComparisons
Map[IDataGeneratorCollection.Key,String] of the keys of experiments to the comparison type |
protected java.util.List |
experimentNames
List[IDataGeneratorCollection.Key] of the keys of results used in comparisons |
protected java.util.Map |
experimentThresholds
Map[IDataGeneratorCollection.Key,String] of the keys of experiments to the threshold |
protected InterfaceBuilder |
manager
Provides interface help for the view |
static java.lang.String |
PROPERTY_EXPERIMENTTHRESHOLDS_EDIT
Property key for changing an existing experiment threshold |
static java.lang.String |
RESOURCE_EXPERIMENTCOMPARISONS
Resource key for the list of available experiment comparison types |
static java.lang.String |
RESOURCE_EXPERIMENTTHRESHOLDS
Resource key for the list of available experiment thresholds |
protected static java.lang.String |
THRESHOLD_EQUIVALENT
Threshold display for equivalent values |
static java.lang.String |
VALUE_NOVALUE
Display value for a non-existent value |
| Fields inherited from class jigcell.compare.ui.BasicTable.BasicTableModel |
|---|
columnWeights, markers |
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
Compare2Model(Compare compare,
java.util.List experimentNames,
java.util.Map experimentComparisons,
java.util.Map experimentThresholds,
java.util.List comparisons,
java.util.Map comparisonNames)
Creates a new table model. |
|
| Method Summary | |
|---|---|
void |
editCellAt(int row,
int column)
Starts editing a cell in the table. |
boolean |
getAllowThresholdEdit()
Whether thresholds can be edited. |
int |
getColumnCount()
The number of columns in the table. |
java.lang.String |
getColumnName(int column)
The name of a column. |
ObjectiveSeriesView.Comparison |
getComparisonType(int row)
Comparison type for a particular row. |
int |
getFixedColumnCount()
The number of fixed columns in the table. |
int |
getRowCount()
The number of generators. |
java.lang.String |
getThresholdValue(int row)
Threshold value for a particular row. |
java.lang.Object |
getValueAt(int row,
int column)
A value in the table. |
boolean |
isCellEditable(int row,
int column)
Whether a value in the table is editable. |
boolean |
isDataColumn(int column)
Whether a particular column contains a result set or a special value. |
void |
setAllowThresholdEdit(boolean allowThresholdEdit)
Sets whether thresholds can be edited. |
void |
setValueAt(java.lang.Object value,
int row,
int column)
Sets a value in the table. |
void |
updateColumnWeights()
Adjusts the column weights for the current number of columns. |
void |
viewCellAt(int row,
int column)
Starts viewing a cell in the table but does not allow editing. |
| Methods inherited from class jigcell.compare.ui.BasicTable.BasicTableModel |
|---|
fillRange, fillRangeAt, fillSelected, findColumn, getColumnClass, getColumnWeights, setColumnMarkers, setColumnWeights |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROPERTY_EXPERIMENTTHRESHOLDS_EDIT
public static final java.lang.String RESOURCE_EXPERIMENTCOMPARISONS
public static final java.lang.String RESOURCE_EXPERIMENTTHRESHOLDS
public static final java.lang.String VALUE_NOVALUE
protected static final java.lang.String THRESHOLD_EQUIVALENT
public final BasicTable.BasicTableModel.Marker COLUMN_COMPARISONTYPE
public final BasicTable.BasicTableModel.Marker COLUMN_NAME
public final BasicTable.BasicTableModel.Marker COLUMN_THRESHOLD
protected boolean allowThresholdEdit
protected Compare compare
protected InterfaceBuilder manager
protected java.util.List comparisons
protected java.util.List experimentNames
protected java.util.Map comparisonNames
protected java.util.Map experimentComparisons
protected java.util.Map experimentThresholds
| Constructor Detail |
|---|
public Compare2Model(Compare compare,
java.util.List experimentNames,
java.util.Map experimentComparisons,
java.util.Map experimentThresholds,
java.util.List comparisons,
java.util.Map comparisonNames)
| Method Detail |
|---|
public void editCellAt(int row,
int column)
row - Rowcolumn - Columnpublic boolean getAllowThresholdEdit()
public int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelgetColumnCount in class BasicTable.BasicTableModelpublic java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class BasicTable.BasicTableModelcolumn - Index of columnpublic ObjectiveSeriesView.Comparison getComparisonType(int row)
row - Rowpublic int getFixedColumnCount()
public int getRowCount()
public java.lang.String getThresholdValue(int row)
row - Row
public java.lang.Object getValueAt(int row,
int column)
getValueAt in interface javax.swing.table.TableModelgetValueAt in class BasicTable.BasicTableModelrow - Rowcolumn - Column
public boolean isCellEditable(int row,
int column)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelrow - Rowcolumn - Columnpublic boolean isDataColumn(int column)
column - Columnpublic void setAllowThresholdEdit(boolean allowThresholdEdit)
allowThresholdEdit - Can edit
public void setValueAt(java.lang.Object value,
int row,
int column)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelvalue - Valuerow - Rowcolumn - Columnpublic void updateColumnWeights()
public void viewCellAt(int row,
int column)
row - Rowcolumn - Column
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||