org.molwind.chemical.view
Class SubstructureRenderer

java.lang.Object
  extended by org.molwind.chemical.view.SubstructureRenderer
All Implemented Interfaces:
MoleculeRenderer

public class SubstructureRenderer
extends java.lang.Object
implements MoleculeRenderer

SubstructureRenderer implements a strategy to render molecules with parent substructures to be highlighted.

Version:
1.0
Author:
Oliver Karch

Constructor Summary
SubstructureRenderer()
           
 
Method Summary
 java.awt.image.BufferedImage getImage(ChemicalEntity chemicalEntity)
          Returns a graphical representation of a molecule.
 double getZoom()
          Get the Zoom value.
 void setZoom(double newZoom)
          Set the Zoom value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubstructureRenderer

public SubstructureRenderer()
Method Detail

getZoom

public double getZoom()
Get the Zoom value.

Returns:
the Zoom value

setZoom

public void setZoom(double newZoom)
Set the Zoom value.

Parameters:
newZoom - the new Zoom value

getImage

public java.awt.image.BufferedImage getImage(ChemicalEntity chemicalEntity)
                                      throws org.openscience.cdk.exception.CDKException
Returns a graphical representation of a molecule.

Specified by:
getImage in interface MoleculeRenderer
Parameters:
chemicalEntity - the chemical entity
Returns:
a buffered image depicting the molecule
Throws:
org.openscience.cdk.exception.CDKException - is thrown upon CDK error


Copyright © 2008-2010. All Rights Reserved.