Package hec.map.dlg

Class DlgMap

All Implemented Interfaces:
MapObjectInterface, Serializable

public class DlgMap extends MapObject implements Serializable, MapObjectInterface
See Also:
  • Constructor Details

    • DlgMap

      public DlgMap(String fileName)
    • DlgMap

      public DlgMap(MapIdentifier id)
    • DlgMap

      public DlgMap()
  • Method Details

    • getElements

      public Vector getElements()
    • toString

      public String toString()
      Overrides:
      toString in class MapObject
    • getExtent

      public WorldRect getExtent()
      Description copied from interface: MapObjectInterface
      Gets the Extent attribute of the MapObjectInterface object
      Specified by:
      getExtent in interface MapObjectInterface
      Overrides:
      getExtent in class MapObject
      Returns:
      The Extent value
    • parseDouble

      public double parseDouble(String s)
    • parseInt

      public int parseInt(String s)
    • parseShort

      public short parseShort(String s)
    • unload

      public void unload()
      Description copied from interface: MapObjectInterface
      Method to tell the Map Object to unload, because the map is done
      Specified by:
      unload in interface MapObjectInterface
      Specified by:
      unload in class MapObject
    • load

      public void load() throws IOException
      Split the load between binary and ASCII
      Specified by:
      load in interface MapObjectInterface
      Specified by:
      load in class MapObject
      Throws:
      IOException - Description of Exception
    • loadBin

      public void loadBin(hec.io.HecFile file) throws IOException
      Load the map from a binary
      Throws:
      IOException
    • loadAsciiWriteBin

      public void loadAsciiWriteBin(hec.io.HecFile inFile, hec.io.HecFile outFile) throws IOException
      Throws:
      IOException
    • mapIdentifierEquals

      public boolean mapIdentifierEquals(MapIdentifier mapid)
      check to see if the Map specified by the MapIdentifier mapid is the same map as this one. Dlg files create a binary version of the ascii file so the test needs to check both the .dlg and the .dlgbin extensions.
      Overrides:
      mapIdentifierEquals in class MapObject
      Parameters:
      mapid -
      Returns:
      true if the mapid references the same map file as this map.