Class MapFactory
java.lang.Object
org.episteme.social.ui.viewers.geography.MapFactory
Factory for creating maps using SPI-based backend discovery.
Auto-detects best available backend if not specified.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectCreates a map with default/AUTO backend.static ObjectcreateMap(String title, MapBackend backend) Creates a map with specified backend (compatibility).static Collection<MapBackend> Returns all discovered map backend providers.static StringGets the currently selected backend ID.static booleanisBackendAvailable(String backendId) Checks if a specific backend is available.static voidsetBackend(String backendId) Sets the preferred backend by ID.
-
Constructor Details
-
MapFactory
public MapFactory()
-
-
Method Details
-
setBackend
Sets the preferred backend by ID.- Parameters:
backendId- Backend ID (e.g., "javafx_map", "openmap", "geotools") or null for AUTO
-
getSelectedBackendId
Gets the currently selected backend ID. -
createMap
-
createMap
Creates a map with specified backend (compatibility). -
getAvailableBackends
Returns all discovered map backend providers. -
isBackendAvailable
Checks if a specific backend is available.
-