Class Images

java.lang.Object
org.helm.notation2.tools.Images

public final class Images
extends Object
Image class to generate image generation of monomers and of the helm molecule
Author:
hecht
  • Method Details

    • generateImageofMonomer

      public static byte[] generateImageofMonomer​(Monomer monomer, boolean rgroupsInformation) throws BuilderMoleculeException, org.helm.chemtoolkit.CTKException, ChemistryException
      generates an image of the atom/bond representation of monomer
      Parameters:
      monomer - Input Monomer
      rgroupsInformation - information if the rgroups should be should or not
      Returns:
      an image of the monomer in byte[]
      Throws:
      org.helm.chemtoolkit.CTKException - general ChemToolKit exception passed to HELMToolKit
      BuilderMoleculeException - if the molecule can't be built
      ChemistryException - if the Chemistry Engine can not be initialized
    • generateImageHELMMolecule

      public static byte[] generateImageHELMMolecule​(org.helm.notation2.parser.notation.HELM2Notation helm2notation) throws BuilderMoleculeException, org.helm.chemtoolkit.CTKException, IOException, ChemistryException
      method to generate an image of the HELM molecule
      Parameters:
      helm2notation - input HELMNotation
      Returns:
      the generated image in byte[]
      Throws:
      BuilderMoleculeException - if the HELM molecule can't be built
      org.helm.chemtoolkit.CTKException - general ChemToolKit exception passed to HELMToolKit
      IOException - IO Error
      ChemistryException - if the Chemistry Engine can not initialized