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
ConstructorsConstructorDescriptionCreates 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 TypeMethodDescriptionvoidaddPoint(NavigationPoint point) Adds a point to the list.voidchangePoint(NavigationPoint point) Notifies listeners that a point has changed.voidclear()Removes all points from the list.intgetColumnName(int column) getPoint(int row) Gets a point from the list.Gets the list of navigation points.intgetValueAt(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:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getValueAt