Interface MolecularRenderer
- All Known Implementing Classes:
JavaFXMolecularRenderer, JmolMolecularRenderer, PyMOLMolecularRenderer, VMDMolecularRenderer
public interface MolecularRenderer
Abstraction for molecular rendering engines.
implementations can use JavaFX (Native), Jmol, PyMOL, etc.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the current view.voidDraw a single atom.voidDraw a bond between two atoms.Returns the backend type of this renderer.Retrieves the native component (e.g.voidsetBackgroundColor(javafx.scene.paint.Color color) Set background color of the viewer.voidsetStyle(RenderStyle style) Set global rendering style.
-
Method Details
-
clear
void clear()Clears the current view. -
setStyle
Set global rendering style.- Parameters:
style- The style to apply.
-
drawAtom
-
drawBond
-
setBackgroundColor
void setBackgroundColor(javafx.scene.paint.Color color) Set background color of the viewer.- Parameters:
color- JavaFX Color (Implementations may convert this).
-
getViewComponent
Object getViewComponent()Retrieves the native component (e.g. SubScene for JavaFX, JPanel for Swing/Jmol).- Returns:
- The UI component.
-
getBackend
-