public class CompoundImageTools extends Object implements IStructureDiagramHighlights, ICompoundImageTools
Modifier and Type | Class and Description |
---|---|
static class |
CompoundImageTools.Mode2D |
Modifier and Type | Field and Description |
---|---|
static String |
ATOM_ANNOTATION |
protected Color |
background |
protected Color |
borderColor |
protected int |
borderWidth |
protected String |
comma |
protected BufferedImage |
defaultImage |
protected StringBuilder |
imageMap |
protected Dimension |
imageSize |
protected static Logger |
logger |
protected org.openscience.cdk.smiles.SmilesParser |
parser |
static String |
SELECTED_ATOM_COLOR |
static String |
SELECTED_ATOM_SIZE |
static Color |
whiteTransparent |
Constructor and Description |
---|
CompoundImageTools() |
CompoundImageTools(Dimension cellSize) |
Modifier and Type | Method and Description |
---|---|
protected BufferedImage |
createBuffer() |
BufferedImage |
createDefaultImage() |
BufferedImage |
createDefaultImage(String msg) |
void |
generate2D(org.openscience.cdk.interfaces.IAtomContainer molecule,
boolean generateCoordinates,
org.openscience.cdk.interfaces.IAtomContainerSet molecules) |
BufferedImage |
generateImage(String value) |
BufferedImage |
generateImage(String value,
IAtomContainerHighlights selector,
boolean build2d,
boolean atomNumbers) |
BufferedImage |
generateImage(String value,
IAtomContainerHighlights selector,
boolean build2d,
boolean atomNumbers,
CompoundImageTools.Mode2D mode2D) |
Color |
getBackground() |
Color |
getBorderColor() |
int |
getBorderWidth() |
Image |
getDefaultImage() |
BufferedImage |
getImage(ArrayList<?> list) |
BufferedImage |
getImage(org.openscience.cdk.interfaces.IAtomContainer molecule) |
BufferedImage |
getImage(org.openscience.cdk.interfaces.IAtomContainer molecule,
IAtomContainerHighlights selector,
boolean build2d,
boolean atomNumbers) |
BufferedImage |
getImage(org.openscience.cdk.interfaces.IAtomContainer molecule,
IAtomContainerHighlights selector,
boolean build2d,
boolean atomNumbers,
boolean explicitH) |
BufferedImage |
getImage(org.openscience.cdk.interfaces.IAtomContainer molecule,
IAtomContainerHighlights selector,
boolean build2d,
boolean atomNumbers,
boolean explicitH,
CompoundImageTools.Mode2D mode2d) |
BufferedImage |
getImage(org.openscience.cdk.interfaces.IAtomContainer mol,
String smarts,
int width,
int height,
boolean atomnumbers) |
BufferedImage |
getImage(Object o) |
BufferedImage |
getImage(String smiles) |
StringBuilder |
getImageMap() |
Dimension |
getImageSize() |
BufferedImage |
getLegend(int width,
int height) |
org.openscience.cdk.smiles.SmilesParser |
getParser() |
void |
paint(org.openscience.cdk.renderer.IRenderer renderer,
org.openscience.cdk.interfaces.IAtomContainerSet molecules,
boolean explicitH,
Graphics2D g,
IAtomContainerHighlights selector,
boolean atomNumbers) |
void |
paint(org.openscience.cdk.renderer.IRenderer renderer,
org.openscience.cdk.interfaces.IAtomContainerSet molecules,
boolean explicitH,
Graphics2D g,
IAtomContainerHighlights selector,
Dimension imageSize,
boolean atomNumbers)
TODO sort molecules, in order to display the largest part first
|
void |
setBackground(Color background) |
void |
setBorderColor(Color borderColor)
Creates gradient border of this color.
|
void |
setBorderWidth(int borderWidth) |
void |
setDefaultImage(BufferedImage defaultImage) |
void |
setImageMap(StringBuilder imageMap) |
void |
setImageSize(Dimension imageSize) |
void |
setParser(org.openscience.cdk.smiles.SmilesParser parser) |
protected static Logger logger
protected StringBuilder imageMap
protected String comma
public static final String SELECTED_ATOM_COLOR
public static final String SELECTED_ATOM_SIZE
public static final String ATOM_ANNOTATION
public static final Color whiteTransparent
protected Dimension imageSize
protected Color background
protected BufferedImage defaultImage
protected Color borderColor
protected int borderWidth
protected org.openscience.cdk.smiles.SmilesParser parser
public CompoundImageTools()
public CompoundImageTools(Dimension cellSize)
public StringBuilder getImageMap()
public void setImageMap(StringBuilder imageMap)
public int getBorderWidth()
public void setBorderWidth(int borderWidth)
public Color getBorderColor()
getBorderColor
in interface ICompoundImageTools
public void setBorderColor(Color borderColor)
setBorderColor
in interface ICompoundImageTools
borderColor
- public org.openscience.cdk.smiles.SmilesParser getParser()
public void setParser(org.openscience.cdk.smiles.SmilesParser parser)
public BufferedImage getImage(Object o)
getImage
in interface ICompoundImageTools
public BufferedImage generateImage(String value) throws org.openscience.cdk.exception.CDKException
org.openscience.cdk.exception.CDKException
public BufferedImage generateImage(String value, IAtomContainerHighlights selector, boolean build2d, boolean atomNumbers) throws org.openscience.cdk.exception.CDKException
org.openscience.cdk.exception.CDKException
public BufferedImage generateImage(String value, IAtomContainerHighlights selector, boolean build2d, boolean atomNumbers, CompoundImageTools.Mode2D mode2D) throws org.openscience.cdk.exception.CDKException
org.openscience.cdk.exception.CDKException
public BufferedImage getImage(String smiles)
public BufferedImage getImage(org.openscience.cdk.interfaces.IAtomContainer molecule)
getImage
in interface IStructureDiagramDepiction<BufferedImage>
getImage
in interface ICompoundImageTools
public BufferedImage getImage(org.openscience.cdk.interfaces.IAtomContainer molecule, IAtomContainerHighlights selector, boolean build2d, boolean atomNumbers)
public BufferedImage getImage(org.openscience.cdk.interfaces.IAtomContainer molecule, IAtomContainerHighlights selector, boolean build2d, boolean atomNumbers, boolean explicitH)
public BufferedImage getImage(org.openscience.cdk.interfaces.IAtomContainer molecule, IAtomContainerHighlights selector, boolean build2d, boolean atomNumbers, boolean explicitH, CompoundImageTools.Mode2D mode2d)
protected BufferedImage createBuffer()
public void generate2D(org.openscience.cdk.interfaces.IAtomContainer molecule, boolean generateCoordinates, org.openscience.cdk.interfaces.IAtomContainerSet molecules)
public void paint(org.openscience.cdk.renderer.IRenderer renderer, org.openscience.cdk.interfaces.IAtomContainerSet molecules, boolean explicitH, Graphics2D g, IAtomContainerHighlights selector, boolean atomNumbers)
public void paint(org.openscience.cdk.renderer.IRenderer renderer, org.openscience.cdk.interfaces.IAtomContainerSet molecules, boolean explicitH, Graphics2D g, IAtomContainerHighlights selector, Dimension imageSize, boolean atomNumbers)
renderer
- molecules
- explicitH
- g
- highlighted
- imageSize
- public BufferedImage getImage(ArrayList<?> list)
public Color getBackground()
getBackground
in interface ICompoundImageTools
public void setBackground(Color background)
setBackground
in interface ICompoundImageTools
public Dimension getImageSize()
getImageSize
in interface IStructureDiagramDepiction<BufferedImage>
getImageSize
in interface ICompoundImageTools
public void setImageSize(Dimension imageSize)
setImageSize
in interface IStructureDiagramDepiction<BufferedImage>
setImageSize
in interface ICompoundImageTools
public Image getDefaultImage()
getDefaultImage
in interface ICompoundImageTools
public void setDefaultImage(BufferedImage defaultImage)
public BufferedImage createDefaultImage()
public BufferedImage createDefaultImage(String msg)
public BufferedImage getImage(org.openscience.cdk.interfaces.IAtomContainer mol, String smarts, int width, int height, boolean atomnumbers) throws net.idea.modbcum.i.exceptions.AmbitException
getImage
in interface IStructureDiagramDepiction<BufferedImage>
net.idea.modbcum.i.exceptions.AmbitException
public BufferedImage getLegend(int width, int height) throws net.idea.modbcum.i.exceptions.AmbitException
getLegend
in interface IStructureDiagramDepiction<BufferedImage>
net.idea.modbcum.i.exceptions.AmbitException
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.