<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Depth-First: Building Chempedia: Resizable Structures With ChemWriter</title>
    <link>http://depth-first.com/articles/2008/05/19/building-chempedia-resizable-structures-with-chemwriter</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Walking the Web of Chemical Informatics</description>
    <item>
      <title>Building Chempedia: Resizable Structures With ChemWriter</title>
      <description>&lt;p&gt;&lt;a href="http://chempedia.com"&gt;&lt;img src="http://depth-first.com/demo/20080513/chempedia.png" align="right"&gt;&lt;/img&gt;&lt;/a&gt;One of the difficulties in viewing 2D chemical structures is that molecules vary in size. In particular, larger molecules become difficult to read when confined to a small section of a screen. This article shows how this problem has been addressed in &lt;a href="http://chempedia.com"&gt;Chempedia&lt;/a&gt; using the 2D rendering capabilities of the &lt;a href="http://metamolecular.com/chemwriter"&gt;ChemWriter&lt;/a&gt; package.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://chempedia.com/monographs/aluminon"&gt;&lt;img src="http://depth-first.com/demo/20080519/screen.png" align="right"&gt;&lt;/img&gt;&lt;/a&gt;As an example, consider Chempedia's entry for &lt;a href="http://chempedia.com/monographs/aluminon"&gt;Aluminon&lt;/a&gt;. Although the summary box at the right shows the structure for Aluminon, it may not be completely readable due to the large size of the molecule.&lt;/p&gt;

&lt;p&gt;To solve this problem, Chempedia has implemented a "zoom" link for all monographs containing a chemical structure. Clicking on the zoom link for Aluminon gives a magnified, scaled, stretchable, and resizable view of the molecule.&lt;/p&gt;

&lt;p&gt;To implement this feature, Chempedia uses the &lt;a href="http://metamolecular.com/chemwriter"&gt;ChemWriter&lt;/a&gt; &lt;tt&gt;PainterApplet&lt;/tt&gt;. Simply setting the &lt;tt&gt;width&lt;/tt&gt; and &lt;tt&gt;height&lt;/tt&gt; attributes of the &lt;a href="http://depth-first.com/articles/2008/03/10/demystifying-java-applets-part-2-dry-deployment-with-the-javay-method"&gt;&lt;tt&gt;&amp;lt;object&amp;gt;&lt;/tt&gt; tag&lt;/a&gt; to "100%" gives an applet that resizes itself as the surrounding window is resized.&lt;/p&gt;

&lt;p&gt;Implementing a resizable 2D structure image window using AJAX and dynamic images is possible, but would be much more difficult to implement. It could also potentially produce a much higher, and unpredictable demand on server memory, CPU cycles, and bandwidth.&lt;/p&gt;

&lt;p&gt;ChemWriter makes it possible for the server to delegate resizable image processing to the client, resulting in a much more responsive feature with minimal effect on the server.&lt;/p&gt;</description>
      <pubDate>Mon, 19 May 2008 09:42:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:97ac70b9-bb2d-491a-9f08-ca71d796ce75</guid>
      <author>Rich Apodaca</author>
      <link>http://depth-first.com/articles/2008/05/19/building-chempedia-resizable-structures-with-chemwriter</link>
      <category>Tools</category>
      <category>chempedia</category>
      <category>chemwriter</category>
      <category>2d</category>
      <category>resize</category>
      <category>chemicalstructure</category>
    </item>
  </channel>
</rss>
