sequenceDiagram
participant M as App.main
participant P as JMVSPanel
participant A as AppearanceManager
participant S as RenderScene
M->>M: load jmvs.properties (classpath; exit on failure)
M->>P: new JMVSPanel(frame, props)
P->>A: new (ElementsManager.initialise)
P->>A: initialisePlugins(plugin.list)
A->>A: Class.forName(...).newInstance(), init(props)
P->>P: build menus from plugin paint modes
P->>S: new RenderScene (Canvas3D + SimpleUniverse)
M->>M: setVisible(true)
Default mode/paint are hard-coded to Balls/CPK in AppearanceManager (the properties plugin.default.* and molecule= are not read).
sequenceDiagram
actor U as User
participant L as JMVSFileLoader
participant R as CIFReader
participant Mo as Molecule
participant P as JMVSPanel
participant A as AppearanceManager
participant S as RenderScene
U->>L: Data > Load, pick file
L->>R: read(File)
R->>Mo: addAtom / addSheet / addHelix
R->>Mo: finish() (bounds, centroid, O(n²) bonds)
L->>P: setMolecule
P->>A: render(molecule, plugin, paint)
A-->>P: TransformGroup
P->>S: display(tg, dx, dy)
S->>S: stopRenderer, detach old, compile, addBranchGraph, startRenderer
Menu item → JMVSPanel.actionPerformed (menu label = plugin name, item = paint mode) → full re-render of the geometry (no incremental recolouring) → RenderScene.display.
Line-by-line: lines starting _atom_site., _struct_conf., _struct_sheet_range. register column indices; subsequent data rows are split on whitespace and dispatched by reflection to the private method named after the category (_atom_site(...)). Any exception → stack trace and System.exit(0).
Mostly printStackTrace + stdout messages; hard exits on config/parse failure; loader failure is only logged.