private static class MultiSpectralControl.ProbeTableModel extends javax.swing.table.AbstractTableModel implements ProbeListener
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String[] |
COLUMNS |
private MultiSpectralControl |
control |
private java.util.Map<java.lang.Integer,MultiSpectralControl.Spectrum> |
indexToSpectrum |
private java.util.Map<ReadoutProbe,java.lang.Integer> |
probeToIndex |
| Constructor and Description |
|---|
ProbeTableModel(MultiSpectralControl control,
java.util.List<MultiSpectralControl.Spectrum> probes) |
| Modifier and Type | Method and Description |
|---|---|
static double |
clamp180(double value) |
static double |
clamp360(double value) |
java.lang.Class<?> |
getColumnClass(int column) |
int |
getColumnCount() |
java.lang.String |
getColumnName(int column) |
int |
getRowCount() |
java.lang.Object |
getValueAt(int row,
int column) |
boolean |
isCellEditable(int row,
int column) |
void |
moveRow(int origin,
int destination) |
void |
probeColorChanged(ProbeEvent<java.awt.Color> e)
Invoked when a probe's color has changed.
|
void |
probeFormatPatternChanged(ProbeEvent<java.lang.String> e)
Invoked when a probe's location format pattern has changed.
|
void |
probePositionChanged(ProbeEvent<visad.RealTuple> e)
Invoked when a probe's position is changed.
|
void |
probeVisibilityChanged(ProbeEvent<java.lang.Boolean> e)
Invoked when a probe's visibility has changed.
|
void |
setValueAt(java.lang.Object value,
int row,
int column) |
void |
updateWith(java.util.List<MultiSpectralControl.Spectrum> updatedSpectra) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerprivate static final java.lang.String[] COLUMNS
private final java.util.Map<ReadoutProbe,java.lang.Integer> probeToIndex
private final java.util.Map<java.lang.Integer,MultiSpectralControl.Spectrum> indexToSpectrum
private final MultiSpectralControl control
public ProbeTableModel(MultiSpectralControl control, java.util.List<MultiSpectralControl.Spectrum> probes)
public void probeColorChanged(ProbeEvent<java.awt.Color> e)
ProbeListenerprobeColorChanged in interface ProbeListenere - Describes the probe that changed, its old color, and its
new color.public void probeVisibilityChanged(ProbeEvent<java.lang.Boolean> e)
ProbeListenerprobeVisibilityChanged in interface ProbeListenere - 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.public void probePositionChanged(ProbeEvent<visad.RealTuple> e)
ProbeListenerprobePositionChanged in interface ProbeListenere - Describes the probe that moved, its old position, and its
new position.public void probeFormatPatternChanged(ProbeEvent<java.lang.String> e)
ProbeListenerprobeFormatPatternChanged in interface ProbeListenere - Describes the probe that changed, the old format pattern,
and the probe's new format pattern.public void updateWith(java.util.List<MultiSpectralControl.Spectrum> updatedSpectra)
public int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelpublic int getRowCount()
getRowCount in interface javax.swing.table.TableModelpublic java.lang.Object getValueAt(int row, int column)
getValueAt in interface javax.swing.table.TableModelpublic boolean isCellEditable(int row, int column)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelpublic void setValueAt(java.lang.Object value, int row, int column)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelpublic void moveRow(int origin, int destination)
public java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelpublic java.lang.Class<?> getColumnClass(int column)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelpublic static double clamp180(double value)
public static double clamp360(double value)