Package noaa.coastwatch.gui.nav
Class NavigationPointTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
noaa.coastwatch.gui.nav.NavigationPointTableModel
- All Implemented Interfaces:
Serializable
,TableModel
The
NavigationPointTableModel
class provides data
from a list of NavigationPoint
objects. The comment
field of the navigation points is used to indicate the latest
status of navigation and should be set accordingly.- Since:
- 3.2.2
- Author:
- Peter Hollemans
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
ConstructorDescriptionCreates a new table using an empty point list.NavigationPointTableModel
(List<NavigationPoint> pointList) Creates a new table using the specified point list. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPoint
(NavigationPoint point) Adds a point to the list.void
changePoint
(NavigationPoint point) Notifies listeners that a point has changed.void
clear()
Removes all points from the list.int
getColumnName
(int column) getPoint
(int row) Gets a point from the list.Gets the list of navigation points.int
getValueAt
(int row, int column) removePoint
(int row) Removes a point from the list.Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Constructor Details
-
NavigationPointTableModel
public NavigationPointTableModel()Creates a new table using an empty point list. -
NavigationPointTableModel
Creates a new table using the specified point list.- Parameters:
pointList
- the initial point list data.
-
-
Method Details
-
getPoint
Gets a point from the list. -
getPointList
Gets the list of navigation points. -
removePoint
Removes a point from the list. -
clear
public void clear()Removes all points from the list. -
getRowCount
public int getRowCount() -
getColumnCount
public int getColumnCount() -
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getValueAt