Package hec.map
Class MapGlyphFactory
java.lang.Object
hec.map.MapGlyphFactory
Makes the Glyphs for the Maps.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Interface for an class that provide a mapping between a MapObject and a MapGlyph. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addMapping
(String mapObjectInterfaceClass, String mapGlyphClass) add a MapObjectInterface to MapGlyph mapping.static Class
static Class
getGlyphClassFor
(Class mapClass) static MapGlyph
newMapGlyph
(MapPanel panel, MapObjectInterface map) Build a new map glyph from the map object's class.static MapGlyph
newMapGlyph
(Class mapclass) Build a new glyph from the map class.
-
Field Details
-
mapGlyphMapping
-
-
Constructor Details
-
MapGlyphFactory
public MapGlyphFactory()
-
-
Method Details
-
addMapping
add a MapObjectInterface to MapGlyph mapping.- Parameters:
mapObjectInterfaceClass
- the classname of the MapObjectInterfacemapGlyphClass
- the classname of the MapGlyph
-
newMapGlyph
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
Build a new glyph from the map class.- Parameters:
mapclass
-- Returns:
-
getGlyphClassFor
- Parameters:
map
-- Returns:
-
getGlyphClassFor
-