chemaxon.alchemist.utils
Class AlchemistMoleculePainter

java.lang.Object
  extended by chemaxon.alchemist.utils.AlchemistMoleculePainter

public class AlchemistMoleculePainter
extends java.lang.Object


Field Summary
static int DEFAULT_DISPLAY_OPTIONS
          default display options, showing atommaps and implicit hydrogens on hetero atoms
static int HIDE_IMPLICIT_HYDROGENS
          showing atommaps, not showing implicit hydrogens
 
Constructor Summary
AlchemistMoleculePainter()
           
 
Method Summary
static void drawMolecule(int x, int y, Molecule molecule, java.awt.Graphics g)
          Renders the molecule into the graphics context in a default 200x200 size
static void drawMolecule(int x, int y, Molecule molecule, java.awt.Graphics g, java.awt.Dimension size)
          Renders the molecule into the graphics context
static void drawMolecule(int x, int y, Molecule molecule, java.awt.Graphics g, java.awt.Dimension size, int dispOpts)
          Renders the molecule into the graphics context
static void drawMolecule(int x, int y, Molecule molecule, java.awt.Graphics g, int width, int height)
          Renders the molecule into the graphics context
static void drawMolecule(Molecule molecule, java.awt.Graphics g)
          Renders the molecule into the graphics context in a default 200x200 size
static void drawMolecule(Molecule molecule, java.awt.Graphics g, java.awt.Dimension size)
          Renders the molecule into the graphics context
static void drawMolecule(Molecule molecule, java.awt.Graphics g, int width, int height)
          Renders the molecule into the graphics context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DISPLAY_OPTIONS

public static final int DEFAULT_DISPLAY_OPTIONS
default display options, showing atommaps and implicit hydrogens on hetero atoms


HIDE_IMPLICIT_HYDROGENS

public static final int HIDE_IMPLICIT_HYDROGENS
showing atommaps, not showing implicit hydrogens

Constructor Detail

AlchemistMoleculePainter

public AlchemistMoleculePainter()
Method Detail

drawMolecule

public static void drawMolecule(Molecule molecule,
                                java.awt.Graphics g)
Renders the molecule into the graphics context in a default 200x200 size

Parameters:
molecule - is the molecule being rendered
g - is the graphics context molecule is being rendered onto

drawMolecule

public static void drawMolecule(int x,
                                int y,
                                Molecule molecule,
                                java.awt.Graphics g)
Renders the molecule into the graphics context in a default 200x200 size

Parameters:
x - is the left coordinate of the rendered image
y - is the top coordinate of the rendered image
molecule - is the molecule being rendered
g - is the graphics context molecule is being rendered onto

drawMolecule

public static void drawMolecule(Molecule molecule,
                                java.awt.Graphics g,
                                int width,
                                int height)
Renders the molecule into the graphics context

Parameters:
molecule - is the molecule being rendered
g - is the graphics context molecule is being rendered onto
width - is the width of the rendered image
height - is the height of the rendered image

drawMolecule

public static void drawMolecule(int x,
                                int y,
                                Molecule molecule,
                                java.awt.Graphics g,
                                int width,
                                int height)
Renders the molecule into the graphics context

Parameters:
x - is the left coordinate of the rendered image
y - is the top coordinate of the rendered image
molecule - is the molecule being rendered
g - is the graphics context molecule is being rendered onto
width - is the width of the rendered image
height - is the height of the rendered image

drawMolecule

public static void drawMolecule(Molecule molecule,
                                java.awt.Graphics g,
                                java.awt.Dimension size)
Renders the molecule into the graphics context

Parameters:
molecule - is the molecule being rendered
g - is the graphics context molecule is being rendered onto
size - is the dimension of the rendered image

drawMolecule

public static void drawMolecule(int x,
                                int y,
                                Molecule molecule,
                                java.awt.Graphics g,
                                java.awt.Dimension size)
Renders the molecule into the graphics context

Parameters:
x - is the left coordinate of the rendered image
y - is the top coordinate of the rendered image
molecule - is the molecule being rendered
g - is the graphics context molecule is being rendered onto
size - is the dimension of the rendered image

drawMolecule

public static void drawMolecule(int x,
                                int y,
                                Molecule molecule,
                                java.awt.Graphics g,
                                java.awt.Dimension size,
                                int dispOpts)
Renders the molecule into the graphics context

Parameters:
x - is the left coordinate of the rendered image
y - is the top coordinate of the rendered image
molecule - is the molecule being rendered
g - is the graphics context molecule is being rendered onto
size - is the dimension of the rendered image
dispOpts - is the display options value