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 MultiSpectralControlprivate 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 doubleclamp180(double value) static doubleclamp360(double value) Class<?> getColumnClass(int column) intgetColumnName(int column) intgetValueAt(int row, int column) booleanisCellEditable(int row, int column) voidmoveRow(int origin, int destination) voidInvoked when a probe's color has changed.voidInvoked when a probe's location format pattern has changed.voidInvoked when a probe's position is changed.voidInvoked when a probe's visibility has changed.voidsetValueAt(Object value, int row, int column) voidupdateWith(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:ProbeListenerInvoked when a probe's color has changed.- Specified by:
probeColorChangedin interfaceProbeListener- Parameters:
e- Describes the probe that changed, its old color, and its new color.
-
probeVisibilityChanged
Description copied from interface:ProbeListenerInvoked when a probe's visibility has changed.- Specified by:
probeVisibilityChangedin 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:ProbeListenerInvoked when a probe's position is changed.- Specified by:
probePositionChangedin interfaceProbeListener- Parameters:
e- Describes the probe that moved, its old position, and its new position.
-
probeFormatPatternChanged
Description copied from interface:ProbeListenerInvoked when a probe's location format pattern has changed.- Specified by:
probeFormatPatternChangedin interfaceProbeListener- Parameters:
e- Describes the probe that changed, the old format pattern, and the probe's new format pattern.
-
updateWith
-
getColumnCount
- Specified by:
getColumnCountin interfaceTableModel
-
getRowCount
- Specified by:
getRowCountin interfaceTableModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel
-
isCellEditable
- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
moveRow
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
clamp180
-
clamp360
-