ChemWriter Painter
Last Updated on Saturday, March 08, 2008.
Rendering Structures with ChemWriter
ChemWriter’s PainterApplet is used to display 2D chemical structures without a user interface. The code is similar to that used to create an EditorApplet. In the example below, a painter is created with a background color of black, a bond color of light gray, and a border of 5 pixels:
<!--[if IE]><object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0" width="166" height="332" ><script>/*<![endif]--><script type="text/javascript">/**/</script>
<!--[if !IE]><!-->
<object type="application/x-java-applet;version=1.4.2" width="166" height="332" >
<!--<![endif]-->
<param name="code" value="com/metamolecular/chemwriter/applet/PainterApplet.class">
<param name="archive" value = "/applets/chemwriter.jar">
<param name="licenseKey" value="D7D4-1D2B-B43C-078F-ACF9-F1F6">
<param name="backgroundColor" value="#000000">
<param name="bondColor" value="#EEEEEE">
<param name="atomColor-N" value="#6666FF">
<param name="borderWidth" value="5">
<param name="molfile" value="[NO NAME]| CHEMWRIT 2D|Created with ChemWriter - http://metamolecular.com/products/chemwriter| 39 44 0 0 0 0 0 0 0 0 0 V2000| 6.0800 -11.2800 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 6.9460 -11.7800 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 7.8121 -11.2800 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 7.8121 -10.2800 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 6.9460 -9.7800 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 6.0800 -10.2800 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 6.9460 -8.7800 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 7.8121 -8.2800 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 7.8121 -7.2800 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 6.9460 -6.7800 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 6.0800 -7.2800 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 6.0800 -8.2800 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 6.9460 -5.7800 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 7.8121 -5.2800 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0| 8.7256 -5.6867 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 9.3947 -4.9436 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0| 8.8947 -4.0776 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 7.9166 -4.2855 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 9.2037 -3.1265 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 8.5346 -2.3834 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 7.5565 -2.5913 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 7.2474 -3.5423 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 6.8873 -1.8481 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 7.0952 -0.8700 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0| 6.2292 -0.3700 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 5.4861 -1.0391 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 5.8928 -1.9527 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0| 6.0213 0.6082 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 5.0703 0.9172 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 4.3271 0.2480 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 4.5350 -0.7301 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 5.3928 -2.8187 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 8.9335 -6.6649 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 9.8846 -6.9739 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 10.0925 -7.9520 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 5.2140 -9.7800 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 4.3479 -10.2800 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0| 5.2140 -8.7800 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0| 10.1819 -2.9186 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0| 1 2 2 0 0 0 0| 2 3 1 0 0 0 0| 3 4 2 0 0 0 0| 4 5 1 0 0 0 0| 5 6 2 0 0 0 0| 6 1 1 0 0 0 0| 5 7 1 0 0 0 0| 7 8 2 0 0 0 0| 8 9 1 0 0 0 0| 9 10 2 0 0 0 0| 10 11 1 0 0 0 0| 11 12 2 0 0 0 0| 12 7 1 0 0 0 0| 10 13 1 0 0 0 0| 13 14 1 0 0 0 0| 14 15 1 0 0 0 0| 15 16 2 0 0 0 0| 16 17 1 0 0 0 0| 17 18 1 0 0 0 0| 18 14 1 0 0 0 0| 19 20 1 0 0 0 0| 20 21 2 0 0 0 0| 21 22 1 0 0 0 0| 22 18 2 0 0 0 0| 21 23 1 0 0 0 0| 23 24 2 0 0 0 0| 24 25 1 0 0 0 0| 25 26 1 0 0 0 0| 26 27 1 0 0 0 0| 27 23 1 0 0 0 0| 25 28 2 0 0 0 0| 28 29 1 0 0 0 0| 29 30 2 0 0 0 0| 30 31 1 0 0 0 0| 31 26 2 0 0 0 0| 27 32 1 0 0 0 0| 15 33 1 0 0 0 0| 33 34 1 0 0 0 0| 34 35 1 0 0 0 0| 6 36 1 0 0 0 0| 36 37 1 0 0 0 0| 36 38 2 0 0 0 0| 19 39 1 0 0 0 0| 19 17 2 0 0 0 0|M END">
<a href="/java/">
<img src="/images/global/chemwriter_plugin.png" class="missingplugin" style="padding: 116px 33px 116px 33px" />
</a>
</object>