Class OSMTileUsagePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class OSMTileUsagePanel extends AbstractTileUsagePanel
This panel displays the current contents of the OSM tile directory tree in terms of which tiles are populated on the system.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Constructor Details

    • OSMTileUsagePanel

      public OSMTileUsagePanel(File tileDir)
      Create a tile usage panel initialized from the specified tile directory hierarchy.
      Parameters:
      tileDir - File pointing at the base directory of the tile directory hierarchy
  • Method Details

    • isDoAllExisting

      public boolean isDoAllExisting()
      Report if assuming all currently present tiles will be downloaded again.
      Returns:
      boolean true if assuming update download
    • isFoundOldTiles

      public boolean isFoundOldTiles()
      Report if system already has map files.
      Returns:
      boolean true if map files already exist on this system
    • setDoAllExisting

      public void setDoAllExisting(boolean doAllExisting)
      Specify if assuming all currently present tiles will be downloaded again.
      Parameters:
      doAllExisting - boolean true if assuming update download
    • paintComponent

      protected void paintComponent(Graphics g)
      Paint the usage and current download bounding box on the panel.
      Specified by:
      paintComponent in class AbstractTileUsagePanel
      Parameters:
      g - the Graphics object to protect