public class HeardStationsTableModel extends javax.swing.table.AbstractTableModel implements TrackerListener, FastComparableTableModel, java.awt.event.WindowListener
The variable column headings will be updated every quarter hour on the quarter hour boundary. The counts will be updated as new messages are received.
| Constructor and Description |
|---|
HeardStationsTableModel() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareRows(int rowIndex1,
int rowIndex2,
int columnIndex)
Compare the selected column of the two rows.
|
java.lang.Class<?> |
getColumnClass(int columnIndex)
Returns the data Class for the specified column.
|
int |
getColumnCount()
Returns the number of columns in the model.
|
java.lang.String |
getColumnName(int column)
Returns a name for the column.
|
StationState |
getRow(int rowIndex)
Returns the value for the cell at
columnIndex and
rowIndex. |
int |
getRowCount()
Returns the number of rows in the model.
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at
columnIndex and
rowIndex. |
boolean |
isUseFilters()
Report whether to use the active filters to restrict what is displayed.
|
void |
messageAdded(StationState ss,
int msgIndex,
AX25Message msg)
Called when a Message is added to the history for a station in the tracker.
|
void |
messageDeleted(StationState ss,
int index,
AX25Message msg)
Called when a AX25Message is deleted from the history for a station in the tracker.
|
void |
removeTableModelListener(javax.swing.event.TableModelListener l)
Removes a listener from the list that's notified each time a
change to the data model occurs.
|
void |
setUseFilters(boolean useFilters)
Specify whether to use the active filters to restrict what is displayed.
|
void |
setUsingTable(javax.swing.JTable usingTable) |
void |
stationAdded(StationState ss,
int index)
Called when a new station is initially added to the tracker.
|
void |
stationDeleted(StationState ss,
int index)
Called when an existing station is deleted from the tracker.
|
void |
stationUpdated(StationState ss)
Called when an existing station is updated with new information in the tracker.
|
void |
windowActivated(java.awt.event.WindowEvent e)
Invoked when the Window is set to be the active Window.
|
void |
windowClosed(java.awt.event.WindowEvent e)
Invoked when a window has been closed as the result
of calling dispose on the window.
|
void |
windowClosing(java.awt.event.WindowEvent e)
Invoked when the user attempts to close the window
from the window's system menu.
|
void |
windowDeactivated(java.awt.event.WindowEvent e)
Invoked when a Window is no longer the active Window.
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
Invoked when a window is changed from a minimized
to a normal state.
|
void |
windowIconified(java.awt.event.WindowEvent e)
Invoked when a window is changed from a normal to a
minimized state.
|
void |
windowOpened(java.awt.event.WindowEvent e)
Invoked the first time a window is made visible.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, setValueAtpublic void setUsingTable(javax.swing.JTable usingTable)
public boolean isUseFilters()
public void setUseFilters(boolean useFilters)
useFilters - boolean true if filters should be usedpublic java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelcolumnIndex - the column being queriedpublic int compareRows(int rowIndex1,
int rowIndex2,
int columnIndex)
compareRows in interface FastComparableTableModelrowIndex1 - zero-based model row index of first row to comparerowIndex2 - zero-based model row index of second row to comparecolumnIndex - zero-based model column index of column to comparepublic java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolumn - the column being queriedcolumnpublic int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelgetRowCount()public int getRowCount()
JTable uses this method to determine how many rows it
should display. This method should be quick, as it
is called frequently during rendering.getRowCount in interface javax.swing.table.TableModelgetColumnCount()public StationState getRow(int rowIndex)
columnIndex and
rowIndex.rowIndex - the row whose value is to be queriedpublic java.lang.Object getValueAt(int rowIndex,
int columnIndex)
columnIndex and
rowIndex.getValueAt in interface javax.swing.table.TableModelrowIndex - the row whose value is to be queriedcolumnIndex - the column whose value is to be queriedpublic void removeTableModelListener(javax.swing.event.TableModelListener l)
removeTableModelListener in interface javax.swing.table.TableModelremoveTableModelListener in class javax.swing.table.AbstractTableModell - the TableModelListenerpublic void messageAdded(StationState ss, int msgIndex, AX25Message msg)
messageAdded in interface TrackerListenerss - StationState containing the station's informationmsgIndex - zero-based index of the message added to the StationState objectmsg - APRS Message object being added to the tracker; note that non-APRS packets
that can still be decoded (such as OpenTRAC) will also be passed
here; AX25Frames that cannot be decoded will pass null herepublic void messageDeleted(StationState ss, int index, AX25Message msg)
messageDeleted in interface TrackerListenerss - StationState containing the station's information; the AX25Message
will already be removed from the StationState objectindex - zero-based index of the message removed from the StationState objectmsg - APRS Message object being removed from the tracker; note that non-APRS packets
that can still be decoded (such as OpenTRAC) will also be passed
here; AX25Frames that cannot be decoded will pass null herepublic void stationAdded(StationState ss, int index)
stationAdded in interface TrackerListenerss - StationState containing the station's information; the initial Message
will not yet be stored within the StationState objectindex - zero-based integer sequence number for this station in the StationTrackerpublic void stationUpdated(StationState ss)
stationUpdated in interface TrackerListenerss - StationState containing the station's information; the new Message
will not yet be stored within the StationState objectpublic void stationDeleted(StationState ss, int index)
stationDeleted in interface TrackerListenerss - StationState containing the station's informationindex - zero-based integer sequence number for this station in the StationTrackerpublic void windowActivated(java.awt.event.WindowEvent e)
windowActivated in interface java.awt.event.WindowListenerpublic void windowOpened(java.awt.event.WindowEvent e)
windowOpened in interface java.awt.event.WindowListenerpublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListenerpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed in interface java.awt.event.WindowListenerpublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified in interface java.awt.event.WindowListenerFrame.setIconImage(java.awt.Image)public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified in interface java.awt.event.WindowListenerpublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated in interface java.awt.event.WindowListener