Class MolecularFactory
java.lang.Object
org.episteme.natural.ui.viewers.chemistry.MolecularFactory
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectcreateViewer(String title) Creates a molecular viewer with default/AUTO backend.static Collection<MolecularBackend> Returns all discovered molecular 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
-
MolecularFactory
public MolecularFactory()
-
-
Method Details
-
setBackend
Sets the preferred backend by ID.- Parameters:
backendId- Backend ID or null for AUTO
-
getSelectedBackendId
Gets the currently selected backend ID. -
createViewer
-
getAvailableBackends
Returns all discovered molecular backend providers. -
isBackendAvailable
Checks if a specific backend is available.
-