<param> HTML tag.
Parameter Meaning Default addRemoveHatomsEnabledAdd/Remove -> Explicit Hydrogens is enabled or disabled in the Edit menu. It will be disabled if this parameter is false. trueautoTabScaleAutomatically change scale when component size changed. Only applicable to the MViewPane bean. falsebackgroundBackground color in hexa. Sets the background color of the components (like menubar, toolbar, labels and buttons), excluding the molecule canvas. See also: molbg confirmTransferDisplays a confirmation dialog window upon closing the structure editor window in case the structure has been altered. falsedetachableEnable or disable popping up detached viewer window. If this parameter is true, the selected molecule can be displayed in separate window by selecting "Window" menu item in the popup menu or by doubleclicking on the canvas. Viewer is not detachable if detachable parameter is false. (See also editable.) truedispQualityDisplay quality.
0- low quality, faster rendering1- high quality (antialiasing), slower rendering1molbgMolecule background color in hexa. To set different colors for some specified cells, use a comma separated list of "i :#rrggbb" settings, where i is the cell index. For example, to set the default color to white and the color of cell 2 to red, use "#ffffff,2:#ff0000". See also: backgroundselectedIndexSelect the specified cell. tabScaleMagnification in the molecule table. Each cell has the specified magnification if positive. The scaling is automatic if negative (-1). -1transferButtonIconSets the location of a custom icon for the Transfer action.   transferButtonTextSets custom text for the Transfer action.   transferButtonVisibleMakes the Transfer button visible on the General Toolbar. truewinScaleMagnification in the zoom window. A 1.54 Å long C-C bond is magnified to winScale pixels. 26.4
Simple viewer applet example:
<applet code="MView" width=100 height=100> <param name="molbg" value="#a0ffa0"> <param name="escapeChar" value="\"> <param name="mol" value="Pyrrole\n ... M END\n"></applet>
Parameter Meaning Default aminoAcidBondColoringEnabledEnable (true) or disable (false) peptide bridge coloring trueatomFontAtom symbol/label font: Serif,SansSeriforMonospacedSansSerifatomMappingVisibleShow (true) or hide (false) atom mapping trueatomPropertiesVisibleShow (true) or hide (false) atom properties trueatomNumbersVisibleDeprecated   atomNumberingTypeSets the type of atom numbering to Off(0), Atom numbers (1) or IUPAC numbering (2) 0valencePropertyVisibleShow (true) or hide (false) valence properties trueatomsizeAtom symbol font size in C-C bond length units:
atomsize*1.54 Å = atomsize*scale points, where scale is the current magnification.0.4atomSymbolsVisibleShow (true) or hide (false) atom symbols in 3D view truebondLengthVisibleShow (true) or hide (false) bond length labels falsebondSpacingDouble bond spacing in C-C bond length units:
spacing*1.54 Å = spacing*scale pixels, where scale is the current magnification.0.18chargeWithCircleCharge label (plus or minus sign) is displayed circled(true) or normal(false) falsechiralitySupportWhen to show atom chirality (R/S).
off- neverselected- if the chiral flag is set for the molecule or the atom's enhanced stereo type is absoluteall- alwaysoffcircledChargeFontCircled charge labels font: any of the fonts installed on the machine SansSerifcircledChargeSizeCircled Charge labels font size in C-C bond length units:
circledChargeSize*1.54 Å = circledChargeSize*scale points 0.4colorSchemeColor scheme.
mono- monochromecpk- Corey-Pauling-Kultunshapely- shapely (residue types)group- residue sequence numberscpkdownWedgeWedge bond display convention. Down wedge points downward in MDL's convention ( mdl), upward (at the chiral center) in Daylight's (daylight).mdlexplicitHShow (true) or hide (false) explicit hydrogens. trueezVisibleShow (true) or hide (false) E/Z labels. falsegrinvShow (true) or hide (false) graph invariants falseimplicitHHow to display H labels.
offhetero- on heteroatomsheteroterm- on hetero or terminal atomsall- all atomsfalseligandErrorVisibleShow (true) or not (false) ligand error by coloring to red. falselonePairsVisibleShow (true) or hide (false) lone pairs falsepeptideDisplayTypeShow peptide sequences with one letter or three letter abbreviations.
Valid values are "1-letter" and "3-letter"3-letterrgroupsVisibleShow (true) or hide (false) R-group definitions trueselection0
selection1
selection2
...Comma-separated list of atom numbers (0, ..., n-1).
Selected atoms are highlighted.
In a simple one-molecule viewer,selection0must be used. In a molecule table,selectionn corresponds to molecule cell n.showSetsShow the specified atom sets only. Comma separated list of set sequence numbers (0, ..., 63). heterotermsketchAnyBondDisplay type of the Any bond in the sketcher:
auto- displayed as dashed line in most cases, solid line only when all bonds are generated from atom coordinates (e.g. XYZ and PDB files).dashed- displayed as dashed linesolid- displayed as solid lineautovalenceErrorVisibleInViewShow (true) or hide (false) valence errors trueviewAnyBondDisplay type of the Any bond in the viewer:
auto- displayed as dashed line in most cases, solid line only when all bonds are generated from atom coordinates (e.g. XYZ and PDB files).dashed- displayed as dashed linesolid- displayed as solid lineautozeroBasedAtomIndexingStarts the atom indexing from zero instead of one:
true- atom indexes are started from zerofalse- atom indexes are started from onefalseviewAtomMarkEnabledEnables (true) or disables (false) atom highlight and atom mark in View. trueviewCarbonVisibilityDisplay the label of carbon atoms in structures.
on- Always show the atom labels of carbon atoms.off- Never show the atom labels of carbon atoms.inChain- Show the atom labels of carbon atoms at straight angles and at implicit Hydrogens.inChainviewLigandOrderVisibilityDisplay the ligand order of R-group atoms in structures.
on- Always show the ligand order of R-group atoms.off- Never show the ligand order of R-group atoms.showOnlyWithDefinition- Show the ligand order of R-group atoms only on R-groups with definition.off
Parameter Meaning Default atomSet0.1 ... atomSet0.63
atomSet1.1 ... atomSet1.63
...Atom sets. Comma separated list of atom indices (0, ..., n-1). An atom in molecule cell number N will be in set M if its number appears in the atomSetN.M list. By default, all atoms are in set 0. atomSetColor0
...
atomSetColor63Atom set color in hexa. bondSet0.1 ... bondSet0.63
bondSet1.1 ... bondSet1.63
...Bond sets. Comma separated list of atom index pairs in i-j format, where i, j = 0, ..., n-1. A bond in molecule cell number N will be in set M if the corresponding atom pair appears in the bondSetN.M list. By default, all bonds are in set 0. bondSetColor1
...
bondSetColor63Bond set color in hexa. clean2dOptsOptions for 2D cleaning (0D->2D) See base 2D cleaning options clean3dOptsOptions for 3D cleaning (0D->3D) See base 3D cleaning options cleanDimNumber of space dimensions for cleaning. See also: cleanOpts, importConv.
2- two-dimensional cleaning3- three-dimensional cleaning2cleanOptsOptions for 2D or 3D cleaning.
cleanOptsaccepts the same parameter values as clean2dOpts or clean3dOpts depending on the cleaning dimension (cleanDim).importConvConversion(s) after molecule loading. Currently the following options are implemented:
"a" or "+a" General aromatization "a_bas" or "+a_bas" Basic aromatization "-a" dearomatization "H" or "+H" add explicit H atoms "-H" remove explicit H atoms "c" automatic cleaning setColoringEnabledAtom/bond set coloring. true
Parameter Meaning Default animateStart an XYZ animation sequence, or starts rotating the specified 3D molecule(s).
Possible values:off,all, or a comma-separated list of molecule indices (0...n-1).
Note: This parameter does not apply to beans, only to applet.offanimDelayDelay (seconds) before repeating the animation. 0animFPSNumber of frames per second in 3D animation. 10animSyncWhether the animations in different cells should be synchronized. falseballRadiusBall radius for "ballstick" rendering mode, in units of covalent radius. 0.5renderingRendering style.
wireframe- wireframewireknobs- wireframe with knobssticks- 3D sticksballstick- ball & stickspacefill- ballswireframescript
script0script1script2...Script containing a subset of RasMol commands delimited by semicolons. If this applet parameter is specified, then the mol parameter is neglected. The molecule(s) must be loaded using the load command in the script.
Note: To load the script from a file, use the script command:
<param name="script" value="script myscript.spt">spin
spin0
spin1
spin2
...Spinning rate and axis for animated molecules. Spinning rate is specified in degrees per second, the axis is specified with a 3D vector. Numbers are separated by commas.
Note: XYZ animations do not spin by default, only if this parameter is set.36,0,1,0stickThickness3D stick diameter for "sticks" and "ballstick" rendering modes, in Angstroms. 0.1wireThicknessline thickness for "wireframe" and "wireknobs" rendering modes, in Angstroms. 0.064
The cells in the multi-cell molecule table mode of MarvinView can be divided further
and they can have they own layout, which however is uniform for all cells in the table.
The parameters described here are used to define the structure of such a cell.
Example of using molecule tables: MarvinView Table View Example
A utility class is also available to generate parameter values: MViewParams
rowsNumber of "molecule rows", including the optional header row. colsNumber of "molecule columns". visibleRowsNumber of visible rows. The table is scrollable if less than rows. Default value: visibleRows = rows. visibleColsNumber of visible columns. The table is scrollable if less than cols. Default value: visibleCols = cols. layoutLayout of molecule, label, button and checkbox components in a cell. layoutHLayout for the header row. paramParameters of the components. paramHParameters for the header row. cell0
cell1
cell2
...Contents of the cells.
Use these instead of themolparameter.borderBorder width in pixels. Default: 0 (no border between cells).
Increases the total appletWIDTHby border*(cols-1), and theHEIGHTby border*(rows-1).
layout parameterlayout and layoutH parameters are in the
following format:
":rows:cols:type:k:l:h:w:anchor:fill:[weighty:[weightx:]]type:k:l:...",
where : is the field separator,
rows is the number of rows in the cell,
cols is the number of columns, type is the type of the
component in row k, column l of the current cell,
h is the height of the component (rows),
w is the width (columns).c (center), n (north), s (south),
e (east), w (west), ne (northeast), etc.
n (none), h (horizontal),
v (vertical) or b (both).
If you are familiar with Java, you might have noticed that anchor, fill, weightx and weighty have the same names as the fields of the GridBagConstraints class. The reason is that MarvinView uses the GridBagLayout class to determine the places and sizes of the components.
Component types: M (molecule), L (label),
B (button), C (checkbox), T (text field) and
I (image).
Example:
<param name="layout" value=":4:3: M:0:0:4:1:c:n: L:0:2:1:1:c:n:0:10: L:1:2:1:1:c:n:0:10: C:0:1:1:1:c:n: C:1:1:1:1:c:n: C:2:1:1:1:c:n: B:3:1:1:1:c:n:10">
param parameterparam or paramH parameter, the first character is
the field separator (`:' here).
The first field is the type of the first component
(M, L, B, C or T),
followed by its n parameters in the forthcoming n fields.
Then the same for the second component, etc.
Component parameters:
The fontprops field usually contains only one number, the font size. Additional properties are "b" (bold font) and "i" (italic). A 12pt bold italic font is specified as "12bi".
:M:width:heightwidth and height are in pixel units. :L:fontpropsfontprops: font properties. :B:fontprops::
:B:fontprops:description:
:B:fontprops:description:framefontprops: font properties,
description: description string,
target: target frame for the URL ("_self" = show in the window and frame that contain the applet, "_parent" = show in the applet's parent frame, "_top" = show in the top-level frame of the applet's window, "_blank" = show in new window).:C:fontprops:
:C:fontprops:descriptionfontprops: font properties,
description: description string.
You may specify the checkbox group number in the type field, by writinggn next to the type-specifying characterC, where n is the group number. No more than one button in a group can be pressed at the same time.:T:fontprops
:T:fontprops:columns
:T:fontprops:columns:editablefontprops: font properties,
columns: number of columns,
editable: editable (rw) or read only (r).
Example:
<param name="param" value=": M:100:100: L:10b: C:10:select this molecule: Cg0:10:include this structure: B:10:search for more molecules like this:_self: T:10: T:10:15: T:10:15:rw">
celli and celli_j
parameterscelli
parameter, or by assignments for each component separately, using
celli_j, where i = 0, 1, ..., rows*cols-1 is the cell index and j = 0, 1,
2, ... is the component index inside the cell.
The contents of celli_j parameters are listed
in the following table for the different component types:
Since newlines are usually neglected in applet parameters by the browsers, each newline should be replaced or preceded by
Component Parameters Description Mmolfilemolfile: the molecule URL or the molecule itself (inline) in a molecule file format (MDL mol, compressed mol, MRV etc.) Llabellabel: the label string. B|label|spec|actionlabel: the button label,
spec: the special character (%from now),
action: the action string.C|||||
|||state||
|||state|-|-
...
|label0|label1|state|action0|action1label0: label for the unchecked state,
label1: label for the checked state,
state: default state (0, 1 or nothing),
action0: action string for unchecking,
action1: action string for checking.
For a "real" checkbox, both labels have to be empty string, otherwise the "checkbox" will be buttonlike.
If both action strings are empty, then the checkbox is disabled. To make it enabled without specifying JavaScript actions, the action values must be "-". Example: "|||1|-|-"Tstringstring: initial value. I|iconfile||
|iconfile|action|titleiconfile: GIF or JPEG file containing the icon,
action: image file orjs:JavaScript code
title: window title, only used if action is an image file.
\n, where
\ is an escape character defined using the escapeChar parameter. If it is defined,
then occurrences of this character must also be escaped as "\\".
The parameter lists of the B, C and
I components should start with "E\|" or
"|", where \ is an escape character which overrides
the escapeChar setting and |
is the separator character (can also be colon, comma or anything else). If
the separator occurs inside the parameter string of a component, then it must
be escaped: "|" should be replaced by "\|".Note that specifying the applet parameters in JavaScript (instead of directly inside an HTML applet tag) requires backslash to be escaped once more, except in case of the newline (\n) which does not need without extra escaping.
The action string for the B, C and I
components can be an URL for buttons, a JPEG, PNG or GIF file for images, or
js:javascript expression for buttons, checkboxes and
images. The button action string may contain %C (where
% is the special character), which is substituted with the
checkbox states represented as a hexadecimal number. The nth bit
in this number is the state of the nth checkbox.
A javascript expression can be used only if you specify the
MAYSCRIPT attribute in the applet tag.
Example:
<param name="escapeChar" value="\"> <param name="cell2_0" value="\n MSketch 04169816382D\n \n 66 72 0 0 0 0 0 0 0 0999 V2000\n mcIWFRwV60\n ... M END\n"> <param name="cell2_1" value="1002"> <param name="cell2_2" value="not bad"> <param name="cell2_3" value="|||1|js:cbx(1002,'not selected')|js:cbx(1002,'selected')"> <param name="cell2_4" value="| Include | Include ||js:cbx(1002,'no include')|js:cbx(1002,'include')"> <param name="cell2_5" value="| Exclude | Exclude ||js:cbx(1002,'no exclude')|js:cbx(1002,'exclude')"> <param name="cell2_6" value="| Search |%|js:searchmore(1002)">
A celli parameter contains the parameter values for
all components in a single list. The list starts either with
"E\|" or "|", where \ and |
are the escape and separator characters. (Not necessarily backslash and
vertical line.)
Example:
<param name="cell2" value="E\|\n MSketch 04169816382D\n \n 66 72 0 0 0 0 0 0 0 0999 V2000\n mcIWFRwV60\n ... M END\n |1002|not bad|||1|js:cbx(1002,'not selected')|js:cbx(1002,'selected') | Include | Include ||js:cbx(1002,'no include')|js:cbx(1002,'include') | Exclude | Exclude ||js:cbx(1002,'no exclude')|js:cbx(1002,'exclude') | Search |%|searchmore.cgi?mol=1002&n=5&cbx=%C">
Parameter Meaning Default copyAsFormatDefault clipboard format by Copy As action. platform dependent copyOptsEnabled output formats at copy command To specify more formats, enumerate them in a comma separated list.
text- Copy As Textbitmap- Copy As Bitmap Imageemf- Copy As Vector Graphical Image (EMF)platform dependent debugDebug mode. Possible values: 0, 1, 2. 0defaultSaveFormatDetermines the default chemical file format in the Save As dialog. mrvdraggableAllows (true) or denies (false) mouse dragged events in cells. trueeditableModes: display only (0) or editable (1, 2). If editable=2, then doubleclick launches MarvinSketch (instead of a viewer window).0escapeCharEscape character to use for parsing the values of mol and cell parameters. importEnabledAllow or forbid molecule import. If this parameter is false, paste function is disabled in MarvinView, also Importoption is disabled in the Molecule Source window. (Use editable parameter to forbid the editing of the molecules.)truemolFormatDefault file format: mol,csmol,smiles,cxsmiles,cml,pdb,pov,sybyl, orxyz.molnavmodeMouse drag action.
translate- move the structurezoom- change magnificationrotZ- rotate in the screen's planerot3d- 3D rotationrotZselectableUse selectable=falseto forbid molecule selection with mouse click.truesketchHelpSketcher help contents. chemaxon/marvin/help
/sketch-index.htmlsketchQuickHelpSketcher quick help. chemaxon/marvin/help
/sketch.htmlnamingWebServiceURLSpecifies the URL of a name recognition and import service for the name import to use. empty
Parameter Meaning Default molThe URL of the molecule file or the file itself (inline) in any supported structure format such as MDL mol, compressed mol, SMILES, SMARTS, etc format.
For multiline values of this parameter, it is recommended to specify escapeChar="\" and replace or precede each newline occurring in the string with "\n". The escape character should also be escaped as "\\".
The file format and/or import options can be specified if one of the following forms is used:
"file{options}",
"file{MULTISET,options}",
"file{format:}",
"file{format:options}", or
"file{format:MULTISET,options}".
If the MULTISET option is specified, then a multi-molecule file is read into one molecule object containing multiple atom sets.
Examples: "foo.xyz{f1.4C4}", "foo.xyz.gz{gzip:xyz:MULTISET,f1.4C4}"preloadDeprecated cacheMolsStore loaded molecules in an internal cache ( trueorfalse).loadMolsComma-separated list of molfiles to preload. Useful for caching molecules in JavaScript "slideshows". molChanged0
molChanged1
molChanged2
...Evaluates a JavaScript code when the molecule is loaded or changed in the specified cell. The number in the parameter name determines the cell index. If no molecule table, use molChanged0 to refer to the molecule. The parameter value should be a JavaScript code. E.g.: <param name="molChanged0" value="alert('First molecule is modified')">listenpropertychangeEnable/disable property change event listener of the applet. If the listener is enabled the applet will call the propertyChange(prop) JavaScript method. The code snippet below demonstrates the handling of property change events in JavaScript. Note: If the MAYSCRIPT option is not specified, JavaScript can not be evaluated from the applet. function propertyChange(prop) { if(document.eventform != null) { var s = document.eventform.txt.value; document.eventform.txt.value = s + "\n" + prop; } } mview_mayscript=true; mview_begin("marvin",400,300); mview_param("listenpropertychange","true"); mview_end();Live applet example: MarvinView Example - Listening for events in applets
If you also specify the "appletid" parameter, its value will appearin the name of the property as prefix (e.g.: "firstapplet.mol").false appletidIdentify applet in property change event notifications to JavaScript. Use this parameter with listenpropertychange when more than one applet are located on the same web page. It helps to identify which applet sent the notification. listenmouseeventEnable/disable mouse event listener of the applet. If the listener is enabled the applet will call the mouseEvent(evt) JavaScript method.
The code snippet below demonstrates the handling of mouse events in JavaScript. Note: If the MAYSCRIPT option is not specified, JavaScript can not be evaluated from the applet.function mouseEvent(evt) { var s = document.mouseform.txt.value; s = s + evt + "\n"; document.mouseform.txt.value = s; } mview_mayscript=true; mview_begin("marvin",400,300); mview_param("listenmouseevent","true"); mview_end();Live applet example: MarvinView Example - Listening for events in appletsfalse skinChange the component's Look & Feel (only in SWING applet). If you do not specify this parameter, Marvin will use the default LookAndFeel style.
This parameter value is the name of the new LookAndFeel class.javax.swing.plaf
.metal
.MetalLookAndFeelsplashScreenImageChange the component's Splash Screen displayed at startup. If you do not specify this parameter, Marvin will use its default splash screen.
This parameter value is the relative path of the image, specify relatively to the CODEBASE
Note: Animated gif files can be displayed badly(flashing, or too fast animation)nulllicenseSets the contents of a pre-read license file to the license manager to read and validate licenses from. licenseFileSets the license file location to the license manager to read and validate licenses from. onErrorA string containing a javascript code, that has to be run by the applet, if it has a failure at initialization.
The %s wildcard can be used to include the error message given by the applet inside the javascript code.
If used withalertErroralso set to true, the alert window will be shown first, and after the user has pressed the OK button on the alert will the given code run.alertErrorIf this parameter is set to true, the applet will show a javascript alert window with an error message, if there was a problem in the initialization process of the applet. legacy_lifecycleThe "legacy_lifecycle" is a general Java applet parameter. If its value is true, it helps avoid destroying the applet when you leaves the applet page. If you use "marvin.js", it sets its value to true automatically unless you specify its value explicitly. By the way, the defalut value of this parameter in Java is false. See the discussion about it on the forum. viewHelpViewer help contents. Accepts relative URL to the applet codebase or any absolute URL. chemaxon/marvin/help
/view-index.htmlviewQuickHelpViewer quick help. Accepts relative URL to the applet codebase or any absolute URL. chemaxon/marvin/help
/view.html
getC, setC,
setActionC, setActionB or setM
called with too large argument.