Class TopographyOverlay

All Implemented Interfaces:
Serializable, Cloneable, Comparable

public class TopographyOverlay extends LineOverlay
A topography overlay annotates an earth data view with topography lines. The topography lines are rendered from ETOP05 elevation data using the ContourGenerator class. ETOP05 data has a spatial resolution of 5 minutes and a digitization accuracy of 1 meter. Information on ETOP05 may be found at:
http://www.ngdc.noaa.gov/mgg/global/global.html
http://sis.agr.gc.ca/cansis/nsdb/ecostrat/elevation.html
Since:
3.1.7
Author:
Peter Hollemans
See Also:
  • Field Details

    • TOPO_LEVELS

      public static final int[] TOPO_LEVELS
      The default topography contour levels.
    • BATH_LEVELS

      public static final int[] BATH_LEVELS
      The default bathymetry contour levels.
  • Constructor Details

    • TopographyOverlay

      public TopographyOverlay(Color color, int layer, Stroke stroke) throws IOException
      Constructs a new topography overlay.
      Parameters:
      color - the overlay color.
      layer - the overlay layer number.
      stroke - the stroke to use for vector paths.
      Throws:
      IOException - if a problem occurs accessing the topography data.
    • TopographyOverlay

      public TopographyOverlay(Color color) throws IOException
      Constructs a new topography overlay. The layer number is initialized to 0, and the stroke to the default BasicStroke.
      Parameters:
      color - the overlay color.
      Throws:
      IOException - if a problem occurs accessing the topography data.
  • Method Details

    • getLevels

      public int[] getLevels()
      Gets the topography levels.
    • setLevels

      public void setLevels(int[] levels)
      Sets the topography levels.
    • prepare

      protected void prepare(Graphics2D g, EarthDataView view)
      Description copied from class: EarthDataOverlay
      Prepares the overlay graphics prior to drawing.
      Specified by:
      prepare in class EarthDataOverlay
      Parameters:
      g - the graphics object for drawing.
      view - the earth data view.
    • draw

      protected void draw(Graphics2D g, EarthDataView view)
      Description copied from class: EarthDataOverlay
      Draws the overlay graphics.
      Specified by:
      draw in class EarthDataOverlay
      Parameters:
      g - the graphics object for drawing.
      view - the earth data view.