Package org.helm.notation2.tools
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 Summary
Modifier and Type Method Description static byte[]generateImageHELMMolecule(org.helm.notation2.parser.notation.HELM2Notation helm2notation)method to generate an image of the HELM moleculestatic byte[]generateImageofMonomer(Monomer monomer, boolean rgroupsInformation)generates an image of the atom/bond representation of monomer
-
Method Details
-
generateImageofMonomer
public static byte[] generateImageofMonomer(Monomer monomer, boolean rgroupsInformation) throws BuilderMoleculeException, org.helm.chemtoolkit.CTKException, ChemistryExceptiongenerates an image of the atom/bond representation of monomer- Parameters:
monomer- Input MonomerrgroupsInformation- 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 HELMToolKitBuilderMoleculeException- if the molecule can't be builtChemistryException- 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, ChemistryExceptionmethod 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 builtorg.helm.chemtoolkit.CTKException- general ChemToolKit exception passed to HELMToolKitIOException- IO ErrorChemistryException- if the Chemistry Engine can not initialized
-