Package hec.map.flo2d

Class Flo2dGlyph

java.lang.Object
hec.map.MapGlyph
hec.map.flo2d.Flo2dGlyph
All Implemented Interfaces:
ElevationGlyph, Comparable<MapGlyph>
Direct Known Subclasses:
Flo2dDepthGlyph

public abstract class Flo2dGlyph extends MapGlyph implements ElevationGlyph
  • Field Details

    • _lr

      protected LocalRect _lr
    • _drawOutlines

      protected boolean _drawOutlines
  • Constructor Details

    • Flo2dGlyph

      public Flo2dGlyph(MapPanel panel, MapObjectInterface map)
      Parameters:
      panel -
      map -
    • Flo2dGlyph

      public Flo2dGlyph()
  • Method Details

    • 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
    • drawWorldRect

      protected void drawWorldRect(Graphics g, MapScale scl, Flo2dCell cell, Color lineClr, Color fillClr)
    • shouldDrawZeroCells

      protected boolean shouldDrawZeroCells()
      Returns:
    • 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
    • getMaximumElevation

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

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

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

      protected abstract ColorContour getColorContour()
      Returns: