Class NavigationPointTableModel

java.lang.Object
javax.swing.table.AbstractTableModel
noaa.coastwatch.gui.nav.NavigationPointTableModel
All Implemented Interfaces:
Serializable, TableModel

public class NavigationPointTableModel extends AbstractTableModel
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:
  • Constructor Details

    • NavigationPointTableModel

      public NavigationPointTableModel()
      Creates a new table using an empty point list.
    • NavigationPointTableModel

      public NavigationPointTableModel(List<NavigationPoint> pointList)
      Creates a new table using the specified point list.
      Parameters:
      pointList - the initial point list data.
  • Method Details

    • addPoint

      public void addPoint(NavigationPoint point)
      Adds a point to the list.
    • getPoint

      public NavigationPoint getPoint(int row)
      Gets a point from the list.
    • getPointList

      public List<NavigationPoint> getPointList()
      Gets the list of navigation points.
    • removePoint

      public NavigationPoint removePoint(int row)
      Removes a point from the list.
    • clear

      public void clear()
      Removes all points from the list.
    • changePoint

      public void changePoint(NavigationPoint point)
      Notifies listeners that a point has changed.
    • getRowCount

      public int getRowCount()
    • getColumnCount

      public int getColumnCount()
    • getColumnName

      public String getColumnName(int column)
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
    • getValueAt

      public Object getValueAt(int row, int column)