public class DirectMoleculeDrawer extends AbstractDirectDrawer
params
Constructor and Description |
---|
DirectMoleculeDrawer() |
DirectMoleculeDrawer(Params params) |
Modifier and Type | Method and Description |
---|---|
void |
addHighlighter(Highlighter highlighter)
Add a highlighter to the list.
|
void |
addHighlights(org.openscience.cdk.interfaces.IAtomContainer highlightContainer)
Set the highlights for all atoms and bonds in the container to the
color set in Params.highlightColor.
|
void |
addHighlights(org.openscience.cdk.interfaces.IAtomContainer highlightContainer,
java.awt.Color color)
Set the highlights for all atoms and bonds in the highlight container
to this color.
|
void |
addHighlights(java.util.List<org.openscience.cdk.interfaces.IAtom> atoms)
Set the highlights for all the atoms in the list to the color in
Params.highlightColor.
|
void |
addHighlights(java.util.List<org.openscience.cdk.interfaces.IAtom> atoms,
java.awt.Color color) |
void |
addHighlights(java.util.List<org.openscience.cdk.interfaces.IAtom> atoms,
java.util.List<org.openscience.cdk.interfaces.IBond> bonds)
Set the highlights for all the atoms and bonds to the color in
Params.highlightColor.
|
void |
addToChiralMap(java.util.Map<org.openscience.cdk.interfaces.IAtom,IStereoAndConformation> chirals) |
void |
addToHighlights(java.util.Map<org.openscience.cdk.interfaces.IAtom,java.awt.Color> colorMap) |
void |
clearHighlights()
Removes all the highlights from the drawer.
|
void |
drawMolecule(org.openscience.cdk.interfaces.IAtomContainer molecule,
java.awt.Graphics2D g) |
java.awt.geom.Rectangle2D |
drawMoleculeID(org.openscience.cdk.interfaces.IAtomContainer atomContainer,
java.awt.Graphics2D g) |
java.awt.geom.Rectangle2D |
getDrawnBounds(java.util.List<org.openscience.cdk.interfaces.IAtom> atoms) |
Highlighter |
getFirstHighlighter()
Get the first highlighter in the list, or create one if none exists.
|
java.util.List<Highlighter> |
getHighlighters()
Get the list of highlighters.
|
drawLine, getParams, getTextBounds, getTextPoint, makeBlankImage, makeBlankImage, setParams
public DirectMoleculeDrawer(Params params)
params
- public DirectMoleculeDrawer()
public void addToChiralMap(java.util.Map<org.openscience.cdk.interfaces.IAtom,IStereoAndConformation> chirals)
chirals
- public java.awt.geom.Rectangle2D getDrawnBounds(java.util.List<org.openscience.cdk.interfaces.IAtom> atoms)
atoms
- public void clearHighlights()
public Highlighter getFirstHighlighter()
public java.util.List<Highlighter> getHighlighters()
public void addHighlighter(Highlighter highlighter)
highlighter
- a class implementing the highlighter interfacepublic void addHighlights(org.openscience.cdk.interfaces.IAtomContainer highlightContainer, java.awt.Color color)
highlightContainer
- color
- public void addHighlights(java.util.List<org.openscience.cdk.interfaces.IAtom> atoms, java.awt.Color color)
atoms
- color
- public void addHighlights(org.openscience.cdk.interfaces.IAtomContainer highlightContainer)
highlightContainer
- public void addHighlights(java.util.List<org.openscience.cdk.interfaces.IAtom> atoms, java.util.List<org.openscience.cdk.interfaces.IBond> bonds)
atoms
- bonds
- public void addHighlights(java.util.List<org.openscience.cdk.interfaces.IAtom> atoms)
atoms
- public void addToHighlights(java.util.Map<org.openscience.cdk.interfaces.IAtom,java.awt.Color> colorMap)
colorMap
- public void drawMolecule(org.openscience.cdk.interfaces.IAtomContainer molecule, java.awt.Graphics2D g)
molecule
- g
- public java.awt.geom.Rectangle2D drawMoleculeID(org.openscience.cdk.interfaces.IAtomContainer atomContainer, java.awt.Graphics2D g)
atomContainer
- g
-