public class DataSetSelectionModel extends DefaultTableModel implements DataSetChangeListener
DataSetSelectionTable.| Modifier and Type | Field and Description |
|---|---|
static String[] |
Column_Identifiers |
columnIdentifiers, dataVectorlistenerList| Constructor and Description |
|---|
DataSetSelectionModel(DataSetManager dsm)
Create a new
DataSetSelectionModel by providing the DataSetManager, which is used to build the model on. |
| Modifier and Type | Method and Description |
|---|---|
void |
datasetChanged(DataSetChangedEvent e)
Inform that there was a change in the
DataSets |
void |
datasetsChanged(DataSetsChangedEvent e)
Inform that a Collection of
DataSets changed. |
DefaultCellEditor |
getColorScaleEditor(int row)
Get the Editor for the appropriate
ColorScalePane renderer. |
idare.imagenode.internal.GUI.DataSetController.DataSetSelectionModel.ColorBoxRenderer |
getColorScaleRenderer(int row)
Get the renderer for the
ColorScalePane in the specified row. |
Class |
getColumnClass(int c) |
TableCellEditor |
getDataSetEditor(int row)
Get the Editor for the appropriate
DataSet renderer. |
DefaultCellEditor |
getPropertiesEditor(int row)
Get the Editor for the appropriate
DataSetLayoutProperties renderer. |
idare.imagenode.internal.GUI.DataSetController.DataSetSelectionModel.ComboBoxRenderer |
getPropertiesRenderer(int row)
Get the renderer for the properties in the specified row.
|
Vector<DataSetLayoutInfoBundle> |
getSelectedDataSets()
|
boolean |
isCellEditable(int row,
int col) |
void |
moveRowDown(int row)
Move a
DataSet down in the table (supplying the row of the dataset to move down |
void |
moveRowUp(int row)
Move a
DataSet up in the table (supplying the row of the dataset to move up |
void |
setDataSetProperties()
Set the properties of the
DataSets according to the selected values. |
void |
updateDataSetProperties(DataSet ds)
Update the dataset Properties
|
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAtaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic static String[] Column_Identifiers
public DataSetSelectionModel(DataSetManager dsm)
DataSetSelectionModel by providing the DataSetManager, which is used to build the model on.
The DataSetManager will initially be querried for all data of its DataSets.dsm - the DataSetManager to use in this modelpublic void updateDataSetProperties(DataSet ds)
ds - The dataset to update the propertiespublic Class getColumnClass(int c)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic boolean isCellEditable(int row,
int col)
isCellEditable in interface TableModelisCellEditable in class DefaultTableModelpublic Vector<DataSetLayoutInfoBundle> getSelectedDataSets()
DataSets and their chosen ColorMaps in a DataSetLayoutInfoBundlepublic void setDataSetProperties()
DataSets according to the selected values.public void moveRowUp(int row)
DataSet up in the table (supplying the row of the dataset to move uprow - the row to move uppublic void moveRowDown(int row)
DataSet down in the table (supplying the row of the dataset to move downrow - the row to move downpublic idare.imagenode.internal.GUI.DataSetController.DataSetSelectionModel.ComboBoxRenderer getPropertiesRenderer(int row)
row - the row to get the ComboBoxRenderer forpublic idare.imagenode.internal.GUI.DataSetController.DataSetSelectionModel.ColorBoxRenderer getColorScaleRenderer(int row)
ColorScalePane in the specified row.row - the row to get the ColorBoxRenderer for.ColorScalePanepublic DefaultCellEditor getColorScaleEditor(int row)
ColorScalePane renderer.row - the row to get the Editor forDefaultCellEditor for the ColorScalePane in the requested rowpublic TableCellEditor getDataSetEditor(int row)
DataSet renderer.row - the row to get the TableCellEditor forTableCellEditor for the DataSet represented by the requested rowpublic DefaultCellEditor getPropertiesEditor(int row)
DataSetLayoutProperties renderer.row - the row to get the Editor forDefaultCellEditor for the appropriate DataSetLayoutPropertiespublic void datasetChanged(DataSetChangedEvent e)
DataSetChangeListenerDataSetsdatasetChanged in interface DataSetChangeListenere - the DataSetChangedEvent to processpublic void datasetsChanged(DataSetsChangedEvent e)
DataSetChangeListenerDataSets changed.datasetsChanged in interface DataSetChangeListenere - The DataSetsChangedEvent to processCopyright © 2018. All rights reserved.