Class MapFactory

java.lang.Object
org.episteme.social.ui.viewers.geography.MapFactory

public class MapFactory extends Object
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 Details

    • MapFactory

      public MapFactory()
  • Method Details

    • setBackend

      public static void setBackend(String backendId)
      Sets the preferred backend by ID.
      Parameters:
      backendId - Backend ID (e.g., "javafx_map", "openmap", "geotools") or null for AUTO
    • getSelectedBackendId

      public static String getSelectedBackendId()
      Gets the currently selected backend ID.
    • createMap

      public static Object createMap(String title)
      Creates a map with default/AUTO backend.
    • createMap

      public static Object createMap(String title, MapBackend backend)
      Creates a map with specified backend (compatibility).
    • getAvailableBackends

      public static Collection<MapBackend> getAvailableBackends()
      Returns all discovered map backend providers.
    • isBackendAvailable

      public static boolean isBackendAvailable(String backendId)
      Checks if a specific backend is available.