Package hec.map.vrt

Class VrtMapGlyph

java.lang.Object
hec.map.MapGlyph
hec.map.vrt.VrtMapGlyph
All Implemented Interfaces:
ElevationGlyph, Comparable<MapGlyph>

public class VrtMapGlyph extends MapGlyph implements ElevationGlyph
  • Constructor Details

  • Method Details

    • isShown

      public boolean isShown()
      Description copied from class: MapGlyph
      Gets whether this MapGlyph is currently drawn in the MapPanel

      Overrides:
      isShown in class MapGlyph
      Returns:
      true if this MapGlyph is drawing in the MapPanel
    • setShown

      public void setShown(boolean shown)
      Description copied from class: MapGlyph
      Sets whether this MapGlyph will draw in the MapPanel

      Overrides:
      setShown in class MapGlyph
      Parameters:
      shown - true if the MapGlyph is to draw
    • draw

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

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

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

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

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

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

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

      public GlyphDataRecord getDefaultDataRecord()
      Gets the DefaultDataRecord of the MapGlyph object

      Overrides:
      getDefaultDataRecord in class MapGlyph
      Returns:
      null unless overridden to return something else