Package hec.map

Class MapObjectFactory

java.lang.Object
hec.map.MapObjectFactory

public class MapObjectFactory extends Object
  • Constructor Details

    • MapObjectFactory

      public MapObjectFactory()
  • Method Details

    • newMapObject

      public static MapObject newMapObject(FileOpener fileOpener, String path)
    • newMapObject

      public static MapObject newMapObject(FileOpener fileOpener, Identifier id)
    • getClassForUrl

      public static Class getClassForUrl(String path)
    • addMapping

      public static void addMapping(String mapFileExt, String mapObjectClsName)
      add a MapObject to MapObject mapping.

      Parameters:
      mapFileExt - the file extension (no dot) of the map object file (i.e. shape files is "shp")
      mapObjectClsName - the class name of the MapObject