public class DataSetSelectionModel extends DefaultTableModel implements DataSetChangeListener
DataSetSelectionTable
.Modifier and Type | Field and Description |
---|---|
static String[] |
Column_Identifiers |
columnIdentifiers, dataVector
listenerList
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
DataSet s |
void |
datasetsChanged(DataSetsChangedEvent e)
Inform that a Collection of
DataSet s 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
DataSet s 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, setValueAt
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public 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 DataSet
s.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 TableModel
getColumnClass
in class AbstractTableModel
public boolean isCellEditable(int row, int col)
isCellEditable
in interface TableModel
isCellEditable
in class DefaultTableModel
public Vector<DataSetLayoutInfoBundle> getSelectedDataSets()
DataSet
s and their chosen ColorMap
s in a DataSetLayoutInfoBundle
public void setDataSetProperties()
DataSet
s 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.ColorScalePane
public 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 DataSetLayoutProperties
public void datasetChanged(DataSetChangedEvent e)
DataSetChangeListener
DataSet
sdatasetChanged
in interface DataSetChangeListener
e
- the DataSetChangedEvent
to processpublic void datasetsChanged(DataSetsChangedEvent e)
DataSetChangeListener
DataSet
s changed.datasetsChanged
in interface DataSetChangeListener
e
- The DataSetsChangedEvent
to processCopyright © 2018. All rights reserved.