Class MolecularFactory

java.lang.Object
org.episteme.natural.ui.viewers.chemistry.MolecularFactory

public class MolecularFactory extends Object
Factory for creating molecular visualizations 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

    • MolecularFactory

      public MolecularFactory()
  • Method Details

    • setBackend

      public static void setBackend(String backendId)
      Sets the preferred backend by ID.
      Parameters:
      backendId - Backend ID or null for AUTO
    • getSelectedBackendId

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

      public static Object createViewer(String title)
      Creates a molecular viewer with default/AUTO backend.
    • getAvailableBackends

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

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