Page tree
Skip to end of metadata
Go to start of metadata

Using this configuration the copy/paste operations available in the applet can be controlled: the formats available for copy or paste can be manipulated, or the corresponding resources can be preloaded.
For example, the copy or paste of specific file formats can be forced to be immediately available after the start of the applet, so instead of loading the underlying architecture on demand, the required resources are loaded during the applet initialization time.
In addition, the formats available on the clipboard after a simple copy operation can be configured, as well as the list of formats available in the Copy As dialog.

The configuration is available through a Java properties file which has to be placed to the APPLET_CODEBASE/chemaxon/marvin/ file. If this file is available in the applet codebase, the configuration will take effect.

This properties file contains settings for format keys. The property name format is as follows:, so for example, if somebody wants to disable the png format on the copy as dialog, then the png.use.dialog key has to be set to false.


Available format keys in the property file, and the corresponding formats:

Format keyThe corresponding format
mrvMarvin Document Format
skcIsisDraw Sketch file format
cdxChemDraw Sketch file format
molMDL MOLfile format
rxnMDL RXNfile format
smilesDaylight SMILES format
smartsDaylight SMARTS format
cxsmilesChemaxon extended SMILES format
cxsmartsChemaxon extended SMARTS format
nameIUPAC name format
trad_nameTraditional name format
inchiIUPAC InChI format
inchikeyIUPAC InChIKey format
stringMolecule source, containing the actual file format of the molecule object
emfEnchanced Metafile picture format (available only on windows platforms)
jpgJPG image format
pngPNG image format

Available configurable properties for all formats and their meanings:

Parameter nameValid valuesMeaning
namecan be any StringThis will be displayed in the Copy As dialog to represent the format.
disabledtrue/falseIf set to false, then the format won't be available at all.
preload.copytrue/falseIf set to true, then the classes needed for copying in the specified format will be preloaded at applet initialization.
preload.pastetrue/falseIf set to true, then the classes needed for pasting in the specified format will be preloaded at applet initialization.
preloadtrue/falseIf set to true, then the classes needed for copying or pasting in the specified format will be preloaded at applet initialization.
use.defaulttrue/falseIf set to true, then the molecule will be placed to the clipboard by a simple copy operation in the specified format.
use.dialogtrue/falseIf set to false, then the specified format won't be available in the Copy As dialog.

By default, none of the formats are preloaded, all of them are configured as they worked before.


Other available options:

The following keys are not related to the formats, and should be used as they are:

Property nameValid valuesMeaning
ole.enabledtrue/falseIf Microsoft OLE object copy should be disabled then set to false.
ole.namecan be any StringThis will be displayed in the Copy as dialog to represent the Microsoft OLE object format.
separatora comma separated list of format keys.After the enumerated formats a separator will be placed in the copy as dialog.

The default configuration file

#define where to place separator in the copy as dialog.
#comma separated list, separators will be placed after the listed formats
separator = string

#OLE related settings. Note: OLE is usable only on Windows platforms. = Marvin Object (OLE)
ole.enabled = true

#structure formats = Marvin Document (MRV)
mrv.disabled = false
mrv.preload.copy = false
mrv.preload.paste = false
mrv.use.default = true
mrv.use.dialog = true = ISIS (Symyx) file (SKC)
skc.disabled = false
skc.preload = false
skc.use.default = true
skc.use.dialog = true = ChemDraw file (CDX)
cdx.disabled = false
cdx.preload = false
cdx.use.default = true
cdx.use.dialog = true = MDL MOLfile
mol.disabled = false
mol.preload.copy = false
mol.preload.paste = false
mol.use.default = true
mol.use.dialog = true = MDL RXNfile
rxn.disabled = false
rxn.preload.copy = false
rxn.preload.paste = false
rxn.use.default = true
rxn.use.dialog = true = Daylight SMILES
smiles.disabled = false
smiles.preload.copy = false
smiles.preload.paste = false
smiles.use.default = false
smiles.use.dialog = true = Daylight SMARTS
smarts.disabled = false
smarts.preload.copy = false
smarts.preload.paste = false
smarts.use.default = false
smarts.use.dialog = true = ChemAxon SMILES (CXSMILES)
cxsmiles.disabled = false
cxsmiles.preload.copy = false
cxsmiles.preload.paste = false
cxsmiles.use.default = false
cxsmiles.use.dialog = true = ChemAxon SMARTS (CXSMILES)
cxsmarts.disabled = false
cxsmarts.preload.copy = false
cxsmarts.preload.paste = false
cxsmarts.use.default = false
cxsmarts.use.dialog = true = Name
name.disabled = false
name.preload.copy = false
name.preload.paste = false
name.use.default = false
name.use.dialog = true = InChI
inchi.disabled = false
inchi.preload = false
inchi.use.default = false
inchi.use.dialog = true = InChIKey
inchikey.disabled = false
inchikey.preload = false
inchikey.use.default = false
inchikey.use.dialog = true = Molecule Source (Plain Text)
string.disabled = false
string.preload = false
string.use.default = true
string.use.dialog = true

#image formats
#emf supported only on Windows platforms = EMF Image
emf.disabled = false
emf.preload = false
emf.use.default = true
emf.use.dialog = true

#default copy contains these formats because Java Image Flavor is used in default copy. = JPG Image
jpg.disabled = false
jpg.preload = false
jpg.use.default = false
jpg.use.dialog = true = PNG Image
png.disabled = false
png.preload = false
png.use.default = false
png.use.dialog = true

Further format couplings

Please consider this information also while changing the configuration.

  • If OLE is enabled, then the OLE data will contain the mrv, the mol or rxn file, and the emf image also.
  • Default copy places image data to the clipboard, in java image format. If you want to disable this behaviour you have to set the jimage.use.default property to true.
  • No labels