From: <gil...@us...> - 2008-11-27 22:22:16
|
Revision: 13357 http://cdk.svn.sourceforge.net/cdk/?rev=13357&view=rev Author: gilleain Date: 2008-11-27 21:36:40 +0000 (Thu, 27 Nov 2008) Log Message: ----------- Draws the whole ChemModel, not just AtomContainers. Modified Paths: -------------- jchempaint/trunk/src/main/org/openscience/jchempaint/RenderPanel.java Modified: jchempaint/trunk/src/main/org/openscience/jchempaint/RenderPanel.java =================================================================== --- jchempaint/trunk/src/main/org/openscience/jchempaint/RenderPanel.java 2008-11-27 21:36:16 UTC (rev 13356) +++ jchempaint/trunk/src/main/org/openscience/jchempaint/RenderPanel.java 2008-11-27 21:36:40 UTC (rev 13357) @@ -101,9 +101,6 @@ } public Image takeSnapshot(Rectangle bounds) { - // XXX is this the right image type? - -// new BufferedImage(bounds.width, bounds.height, BufferedImage.TYPE_INT_ARGB); Image image = GraphicsEnvironment .getLocalGraphicsEnvironment() .getScreenDevices()[0] @@ -121,10 +118,11 @@ g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); //TODO render the chem model, not atom container - IMoleculeSet moleculeSet = this.chemModel.getMoleculeSet(); - if (moleculeSet != null && moleculeSet.getAtomContainerCount() > 0) { - this.renderer.paintMolecule(moleculeSet.getAtomContainer(0), g2, bounds); - } + this.renderer.paintChemModel(chemModel, g2, bounds); +// IMoleculeSet moleculeSet = this.chemModel.getMoleculeSet(); +// if (moleculeSet != null && moleculeSet.getAtomContainerCount() > 0) { +// this.renderer.paintMolecule(moleculeSet.getAtomContainer(0), g2, bounds); +// } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |