The cut, copy, and paste operations work in the bean and application versions of Marvin, and also in the applets. However, because of security reasons, the untrusted (unsigned) applets perform these operations using a local clipboard inside the JVM process. The non-applet versions of Marvin and the signed Marvin applets are allowed to use the system clipboard.
Marvin unsigned applets |
Marvin signed applets1 |
Marvin Beans and applications |
|
---|---|---|---|
Cut/Copy/Paste | inside Marvin | yes | yes |
Drag & Drop | no | yes2 | yes |
1: You can find more info about signed Marvin applets in the following documents: Browser compatibility of Marvin Applets, Signed applets
2: Drag & Drop works only when the sketcher is in its own window. When the applet is in the browser window, drop events are received by the browser instead of the applet.
Marvin has three commands to place objects on the clipboard: Copy
,
Copy As...
and Copy as Smiles
.
String
and Plain Text
formats.string
or as
plain text
. From the
Edit
menu choose Source
then
Edit/Copy
to place the desired format on
the clipboard as plain text.?Marvin can place more than one clipboard object on the clipboard, each represents the same molecule in different format. Copy from Marvin supports the following representations:
A couple of formats are not available on a few platforms.
You can also apply or deny the accessibility of one or more copy formats. You can set it by the following ways:
|
|
When the content of the clipboard is pasted into an application (and
it is available in more than one format), the
application retrieves data in the most descriptive format.
Most versions of Microsoft Office prefer pasting image instead of
text if the content of the clipboard is available in both formats.
But there are a few ones that paste text as default. In that case, you should
use "Paste As Special" option in MS-Office to paste it as image but it can be
unconfortable to someone.
The workaround can be the restriction of the text copy from Marvin.
That is the reason why text copy is disabled in the default settings of Marvin
(on a couple of platforms).
In that case, we recommend Copy As... or Copy as SMILES to paste text into MS-Word and
in other editors.
Another solution can be to change the default options of the Copy
command (see above how to do it).
If we compare Bitmap and Vector Graphical Image formats, the situation is the same as in the previous case (text vs. image). Most of the applications prefer bitmap image although they can accept vector graphical images as an Enhanced MetaFile (EMF), like MS-Word. Since vector graphics are scalable unlike bitmap images, we have chosen EMF as default from image formats (where it is supported).
|
Copy: copy a structure from the application into Marvin |
1: On windows in Java 1.2-1.3.1, the
<Java home directory>/jre/lib/flavormap.properties file must be edited:
MDLCT=chemical/x-mdl-Molfile
2: In case of ISISDraw the following option must be checked: Option -> Settings -> General -> Copy Mol/Rxnfile to the Clipboard
3: Copy as SMILES works
4: In OS X, since Java 1.4, data transfer in chemical formats does not work. In that case, molecule can be pasted only as image or text into chemical drawing tools. Copy from an application to Marvin works if the application can place data as Plain Text to the clipboard.
Marvin can paste SMILES strings, MDL MolFiles, etc. from a text editor as molecules.
X Window System: most text editors (xedit, emacs, gvim, etc.) do not transfer data to the X clipboard, so Marvin is unable to communicate with them. Copy & Paste works with the following editors and other programs: