Package hec.map

Class MapGlyphFactory

java.lang.Object
hec.map.MapGlyphFactory

public class MapGlyphFactory extends Object
Makes the Glyphs for the Maps.
  • Field Details

    • mapGlyphMapping

      public static Map mapGlyphMapping
  • Constructor Details

    • MapGlyphFactory

      public MapGlyphFactory()
  • Method Details

    • addMapping

      public static void addMapping(String mapObjectInterfaceClass, String mapGlyphClass)
      add a MapObjectInterface to MapGlyph mapping.
      Parameters:
      mapObjectInterfaceClass - the classname of the MapObjectInterface
      mapGlyphClass - the classname of the MapGlyph
    • newMapGlyph

      public static MapGlyph newMapGlyph(MapPanel panel, MapObjectInterface map)
      Build a new map glyph from the map object's class. Assign the map panel and map object to the new glyph.
      Parameters:
      panel -
      map -
      Returns:
    • newMapGlyph

      public static MapGlyph newMapGlyph(Class mapclass)
      Build a new glyph from the map class.
      Parameters:
      mapclass -
      Returns:
    • getGlyphClassFor

      public static Class getGlyphClassFor(MapObjectInterface map)
      Parameters:
      map -
      Returns:
    • getGlyphClassFor

      public static Class getGlyphClassFor(Class mapClass)