Marvin Beans Examples
MarvinSketch
- MarvinSketch Simple Bean:
Creates a MarvinSketch bean and shows getting and setting molecules.
- MarvinSketch Images:
Creates an image from the contents of the MarvinSketch canvas.
- Structure Display Parameters:
Example of R-group visibility parameters.
- Structure Templates:
Customizing structure templates used in MarvinSketch.
- Text Box:
Creating a text box containing formatted text.
MarvinView
- MarvinView Simple Bean:
Creates a single-cell MarvinView bean component.
- MarvinView In JTable:
Loads multiple molecules from a file and displays them in a JTable using MarvinView as the renderer of Molecule cells.
- MarvinView Table View:
Displays a molecule file in MarvinView using a scrollable molecule table.
Molecules are loaded dynamically and cached automatically, hence arbitrary size files are supported.
- Lower level ways for creating molecule tables.
In these examples, all molecules are loaded in advance, hence the table size is limited by the available memory.
- Table View with Parameters:
Loads multiple molecules from a file into memory, then displays them using MarvinView's scrollable multi-cell molecule matrix mode.
- CustomMenuExample:
Customize the menu of MarvinView.
- MViewPopupExample:
A viewer example with a customized popup menu.
- MViewExampleWithCheckbox:
Demonstrates the handling of action and item events.
- MViewSaveProperties:
Demonstrates how to save Marvin properties.
Swing Components
- JFileChooser accessory component:
Marvin as a custom accessory component of a file chooser to provide a preview to molecule files.
- DialogLauncher.java.txt:
Launches a sketcher or a viewer from a dialog window.
Events
- SketchEventTest.java.txt Shows the fired events of the sketcher.
- ViewEventTest.java.txt This viewer example logs the fired events of the viewer.
- MolChangedEventExample.java.txt: How to listen to the modifying of the structure in the editor.
SimpleConverter.java.txt: Converts the specified molecule file into the required file format.
- JSP Image Generation: A JSP example to create an image from a molecule structure and display it in the browser.
- Excel sheet Generation: A JSP example to create an Excel Sheet with Marvin generated structure images and structure data.
Calculator Plugins
- Using Calculator Plugins via API: a general overview that shows how calculator plugins can be used via API.
- Plugin API usage examples can be found in the API doc headers of the corresponding plugin classes.
- Concurrent plugin examples: examples that show concurrent usage of calculator plugins.
- Custom plugin implementation: custom calculator plugin implementation and test application.