Package hec.map.dem

Class DemGlyph

java.lang.Object
hec.map.MapGlyph
hec.map.dem.DemGlyph
All Implemented Interfaces:
ElevationGlyph, ImageObserver, Serializable, Comparable<MapGlyph>

public class DemGlyph extends MapGlyph implements Serializable, ImageObserver, ElevationGlyph
See Also:
  • Field Details

    • _img

      protected Image _img
    • _areaWidth

      protected int _areaWidth
    • _areaHeight

      protected int _areaHeight
    • _tracker

      protected MediaTracker _tracker
  • Constructor Details

  • Method Details

    • fillMap

      public void fillMap(boolean load)
      Creates the image is the map is being loaded.
      Overrides:
      fillMap in class MapGlyph
      Parameters:
      load - true if _map is load it's data
    • getNoDataValue

      public double getNoDataValue()
      Specified by:
      getNoDataValue in interface ElevationGlyph
    • getElevation

      public double getElevation(WorldPt pt)
    • getMaximumElevation

      public double getMaximumElevation()
      Specified by:
      getMaximumElevation in interface ElevationGlyph
    • getMinimumElevation

      public double getMinimumElevation()
      Specified by:
      getMinimumElevation in interface ElevationGlyph
    • createImage

      protected void createImage()
    • draw

      public void draw(Graphics g, MapScale scl)
      Description copied from class: MapGlyph
      draw this MapGlyph to graphics using the MapScale scl

      Specified by:
      draw in class MapGlyph
      Parameters:
      g - the Graphics to draw to
      scl - The current MapScale
    • imageUpdate

      public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
      Specified by:
      imageUpdate in interface ImageObserver
    • getElevationAt

      public float getElevationAt(int ix, int iy)
      get depth at a point. assume nodes have already been scaled for this viewport
      Specified by:
      getElevationAt in interface ElevationGlyph
    • drawElevationStats

      public void drawElevationStats(Graphics g, LocalRegion region)
      Compute and draw max min and average elevation for the given region
      Specified by:
      drawElevationStats in interface ElevationGlyph