Marvin View Form

The appearance of the marvin view applet can be specified by forms. Forms are defined in the <user home>/.jchemsite property file, can be edited on setup.jsp

A form is specified by its name and properties:
    name.rows=value
    name.cols=value
    name.celldim=value
    name.layout=value
    name.param=value
    name.cell=value

name TABLE_NAME.form.FORM_NAME (eg: jspexample.form.jchemform)
TABLE_NAME: A form has to be assigned to a table created by JChemManager. The result of a query can appear only in those forms which are assigned to the table that the query was performed on.
FORM_NAME: A form can be selected by this name in the example.
rows number of rows of the applet.
cols number of columns of the applet.
celldim CELL_WIDTH:CELL_HEIGHT

Dimension of one cell of the applet.

layout The layout parameter of the applet. See details here.
param The param parameter of the applet. See details here.
cell prefix<FIELD_NAME>postfix#default[;prefix<DB_FIELD_NAME>postfix#default;...]

Defines the kind of data appear in a cell.

prefix Text prompts before the value.
FIELD_NAME This can be the name of the structure table's field which value appears, or one of these:
  • $cd_structure - structure is shown
  • $dissimilarity - in case of similiraty search the value of dissimiliraty ratio is shown
postfix Text appears after the value.
default In case of null value this text appears.

The prefix, postfix, and default values are optional. The simpliest formula: <FIELD_NAME>

Example:

scott.jspexample.form.jchemform.rows=6
scott.jspexample.form.jchemform.cols=3
scott.jspexample.form.jchemform.celldim=240:180
scott.jspexample.form.jchemform.layout=:3:2:L:0:0:1:2:w:n:0:10:M:1:0:2:1:c:n:1:10:L:1:1:1:1:w:n:L:2:1:1:1:nw:n
scott.jspexample.form.jchemform.param=:L:10:M:150:150:L:11b:L:10
scott.jspexample.form.jchemform.cell=ID: <cd_id>;<$cd_structure>;<cd_formula>;MW: <cd_molweight>#no weight