Format styles (journal styles)¶
You can get more advanced display format for the molecule by applying journal styles. Format styles in Marvin include the setting of the following attributes:
- type of atom font,
- scale of atom font,
- color of atoms and atom labels,
- thickness of bonds,
- color of bonds.
Maximum 64 atom sets can be defined in a molecule. Indexing of atom sets starts from zero. The atom set having the zero index is the default atom set. When loading a molecule all the atoms belong to the default atom set by default. After selecting an atom set and applying a style for it, the selected atoms are removed from the default atom set and a new set is created from the atoms with new style. All the atoms, whose style were not yet modified by applying a style on them, still belong to the default atom set.
You can create an atom- or bond-set in Marvin to specify an atom-font/atom-color and bond-thickness/bond-color. The colors, fonts, thickness values are stored in a lookup table of MDocument.
Examples:
Change the format of some atoms and bonds in a chain of 11 atoms
Create a new color/font setting for a set of atoms by registering the color and font in the lookup table
Create a new color/thickness setting for a set of bonds by registering the color and the thickness in the lookup table
Create an atom-set
Create a bond-set
The result of atom and bond set coloring example is shown on the picture:
The atom- and bond-set coloring is available using the atomSetColor, bondSetColor applet and beans parameters.
