Package edu.wisc.ssec.mcidasv.control
Class MultiSpectralControl.ProbeTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
edu.wisc.ssec.mcidasv.control.MultiSpectralControl.ProbeTableModel
- All Implemented Interfaces:
ProbeListener
,Serializable
,EventListener
,TableModel
- Enclosing class:
MultiSpectralControl
private static class MultiSpectralControl.ProbeTableModel
extends AbstractTableModel
implements ProbeListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String[]
private final MultiSpectralControl
private final Map
<Integer, MultiSpectralControl.Spectrum> private final Map
<ReadoutProbe, Integer> Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
ConstructorsConstructorDescriptionProbeTableModel
(MultiSpectralControl control, List<MultiSpectralControl.Spectrum> probes) -
Method Summary
Modifier and TypeMethodDescriptionstatic double
clamp180
(double value) static double
clamp360
(double value) Class
<?> getColumnClass
(int column) int
getColumnName
(int column) int
getValueAt
(int row, int column) boolean
isCellEditable
(int row, int column) void
moveRow
(int origin, int destination) void
Invoked when a probe's color has changed.void
Invoked when a probe's location format pattern has changed.void
Invoked when a probe's position is changed.void
Invoked when a probe's visibility has changed.void
setValueAt
(Object value, int row, int column) void
updateWith
(List<MultiSpectralControl.Spectrum> updatedSpectra) Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
COLUMNS
-
probeToIndex
-
indexToSpectrum
-
control
-
-
Constructor Details
-
ProbeTableModel
-
-
Method Details
-
probeColorChanged
Description copied from interface:ProbeListener
Invoked when a probe's color has changed.- Specified by:
probeColorChanged
in interfaceProbeListener
- Parameters:
e
- Describes the probe that changed, its old color, and its new color.
-
probeVisibilityChanged
Description copied from interface:ProbeListener
Invoked when a probe's visibility has changed.- Specified by:
probeVisibilityChanged
in interfaceProbeListener
- Parameters:
e
- Describes the probe that changed, its old visibility, and the new visibility. The previous and current values will always be the opposites of each other.
-
probePositionChanged
Description copied from interface:ProbeListener
Invoked when a probe's position is changed.- Specified by:
probePositionChanged
in interfaceProbeListener
- Parameters:
e
- Describes the probe that moved, its old position, and its new position.
-
probeFormatPatternChanged
Description copied from interface:ProbeListener
Invoked when a probe's location format pattern has changed.- Specified by:
probeFormatPatternChanged
in interfaceProbeListener
- Parameters:
e
- Describes the probe that changed, the old format pattern, and the probe's new format pattern.
-
updateWith
-
getColumnCount
- Specified by:
getColumnCount
in interfaceTableModel
-
getRowCount
- Specified by:
getRowCount
in interfaceTableModel
-
getValueAt
- Specified by:
getValueAt
in interfaceTableModel
-
isCellEditable
- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-
setValueAt
- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
-
moveRow
-
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
clamp180
-
clamp360
-