155156157158159160161162
private Graphics3D g3d; private JmolAdapter modelAdapter; public JmolAdapter getModelAdapter() { if (modelAdapter == null) modelAdapter = new SmarterJmolAdapter(); return modelAdapter; }
3839404142434445464748
/** * */ public Structure3DComponent() { adapter = new SmarterJmolAdapter(); viewer = JmolViewer.allocateViewer(this, adapter, null, null, null, null, null); viewer.setColorBackground("white"); viewer.setShowHydrogens(false); }
29642965296629672968296929702971
/** * Create a new JmolPanel. */ JmolPanel() { JmolAdapter adapter = new SmarterJmolAdapter(); viewer = JmolViewer.allocateViewer(this, adapter); }