Package hec.map.aidem

Class AiDemGlyph

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

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

    • _img

      protected Image _img
    • _areaWidth

      protected int _areaWidth
    • _areaHeight

      protected int _areaHeight
  • Constructor Details

  • Method Details

    • init

      protected void init()
      Description copied from class: MapGlyph
      called when the MapGlyph is made active. Any initialization should be performed here.
      Overrides:
      init in class MapGlyph
    • setMap

      public void setMap(MapObjectInterface map)
      Sets the MapObjectInterface of the MapGlyph object
      Overrides:
      setMap in class MapGlyph
      Parameters:
      map - The new Map value
    • getDefaultDataRecord

      public GlyphDataRecord getDefaultDataRecord()
      Description copied from class: MapGlyph
      Gets the DefaultDataRecord of the MapGlyph object

      Overrides:
      getDefaultDataRecord in class MapGlyph
      Returns:
      null unless overridden to return something else
    • 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
    • getToolTipText

      public String getToolTipText(WorldPt wpt, MouseEvent e)
      Description copied from class: MapGlyph
      Gets the ToolTipText of the MapGlyph object

      Overrides:
      getToolTipText in class MapGlyph
      Parameters:
      wpt - the WorldPt location of the mouse cursor
      e - the MouseEvent

      Returns:
      The ToolTipText at wpt