Marvin Beans Examples

    MarvinSketch

    1. MarvinSketch Simple Bean: Creates a MarvinSketch bean and shows getting and setting molecules.
    2. MarvinSketch Images: Creates an image from the contents of the MarvinSketch canvas.
    3. Structure Display Parameters: Example of R-group visibility parameters.
    4. Structure Templates: Customizing structure templates used in MarvinSketch.
    5. Text Box: Creating a text box containing formatted text.

    MarvinView

    1. MarvinView Simple Bean: Creates a single-cell MarvinView bean component.
    2. MarvinView In JTable: Loads multiple molecules from a file and displays them in a JTable using MarvinView as the renderer of Molecule cells.
    3. 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.
    4. 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.
      1. Table View with Parameters: Loads multiple molecules from a file into memory, then displays them using MarvinView's scrollable multi-cell molecule matrix mode.
      2. CustomMenuExample: Customize the menu of MarvinView.
      3. MViewPopupExample: A viewer example with a customized popup menu.
      4. MViewExampleWithCheckbox: Demonstrates the handling of action and item events.
      5. MViewSaveProperties: Demonstrates how to save Marvin properties.

    Swing Components

    1. JFileChooser accessory component: Marvin as a custom accessory component of a file chooser to provide a preview to molecule files.
    2. DialogLauncher.java.txt: Launches a sketcher or a viewer from a dialog window.

    Events

    1. SketchEventTest.java.txt Shows the fired events of the sketcher.
    2. ViewEventTest.java.txt This viewer example logs the fired events of the viewer.
    3. 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

    1. Using Calculator Plugins via API: a general overview that shows how calculator plugins can be used via API.
    2. Plugin API usage examples can be found in the API doc headers of the corresponding plugin classes.
    3. Concurrent plugin examples: examples that show concurrent usage of calculator plugins.
    4. Custom plugin implementation: custom calculator plugin implementation and test application.