Class AbstractTileUsagePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable
Direct Known Subclasses:
OSMTileUsagePanel, TopoTileUsagePanel

public abstract class AbstractTileUsagePanel extends JComponent
This provides common boilerplate for tile usage views.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Field Details

    • TRANSLUCENT_RED

      protected static final Color TRANSLUCENT_RED
      Color of outline of area that will be downloaded.
    • SZ

      protected static final Dimension SZ
      Size of usage plot (360x180 pixels, plus one extra for Equator and Prime Meridian).
    • cx

      protected int cx
      Longitude center of download area.
    • cy

      protected int cy
      Latitude center of download area.
    • radius

      protected int radius
      Radius in whole degrees of download area.
    • biTiles

      protected final BufferedImage biTiles
      Image used to render current tile usage.
  • Constructor Details

    • AbstractTileUsagePanel

      protected AbstractTileUsagePanel()
      Set up the common aspects of a TileUsagePanel.
  • Method Details

    • setCx

      public void setCx(int cx)
      Set the longitude center for the download bounding box.
      Parameters:
      cx - int longitude in degrees East
    • setCy

      public void setCy(int cy)
      Set the latitude center for the download bounding box.
      Parameters:
      cy - int latitude in degrees North
    • setRadius

      public void setRadius(int radius)
      Set the download radius in integer degrees.
      Parameters:
      radius - int radius in degrees
    • paintComponent

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