Class JTableProjection

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CellEditorListener, ListSelectionListener, RowSorterListener, TableColumnModelListener, TableModelListener, Scrollable

public class JTableProjection extends JTable
Consider this a private inner class of ProjectionManager.
Version:
$Id: JTableProjection.java,v 1.25 2006/12/27 20:00:08 jeffmc Exp $
Author:
John Caron
See Also:
  • Constructor Details

    • JTableProjection

      public JTableProjection(ProjectionManager manager, List list)
      Create a new JTableProjection with the list of projections and a default.
      Parameters:
      manager - The projection manager
      list - list of projections
  • Method Details

    • setProjections

      public void setProjections(List list)
      Set the list of projections in the table
      Parameters:
      list - list of projections
    • getTopPanel

      public JComponent getTopPanel()
      Get the top panel which holds the export button
      Returns:
      the top panel
    • getProjections

      public List getProjections()
      Get the projections in the table.
      Returns:
      List of projections.
    • addProjection

      public void addProjection(ucar.unidata.geoloc.ProjectionImpl proj)
      Add a projection to the table.
      Parameters:
      proj - projection to add
    • replaceProjection

      public void replaceProjection(ucar.unidata.geoloc.ProjectionImpl proj)
      Replace a projection in the table.
      Parameters:
      proj - projection to replace.
    • contains

      public boolean contains(ucar.unidata.geoloc.ProjectionImpl proj)
      See if a projection is in the table.
      Parameters:
      proj - projection to check
      Returns:
      true if it is in the table.
    • contains

      public boolean contains(String id)
      See if the table contains the id for the projection
      Parameters:
      id - id (name) to check
      Returns:
      true if the name is there.
    • getSelected

      public ucar.unidata.geoloc.ProjectionImpl getSelected()
      Get the selected projection in the table.
      Returns:
      selected projection (may be null)
    • deleteSelected

      public void deleteSelected()
      Delete the selected projection in the table.
    • isEmpty

      public boolean isEmpty()
      Check if the table is empty.
      Returns:
      true if it is empty.
    • setMapArea

      public void setMapArea(ucar.unidata.geoloc.ProjectionRect bb)
      Set the map area.
      Parameters:
      bb - projection rectangle
    • setCurrentProjection

      public void setCurrentProjection(ucar.unidata.geoloc.ProjectionImpl proj)
      Set current projection if found, else deselect
      Parameters:
      proj - projectiong to select
    • addNewProjectionListener

      public void addNewProjectionListener(NewProjectionListener l)
      Add a new listener
      Parameters:
      l - listener to add
    • removeNewProjectionListener

      public void removeNewProjectionListener(NewProjectionListener l)
      Remove a listener.
      Parameters:
      l - listener to remove.