Package com.actelion.research.chem
Class SVGDepictor
- java.lang.Object
-
- com.actelion.research.chem.AbstractDepictor
-
- com.actelion.research.chem.SVGDepictor
-
public class SVGDepictor extends AbstractDepictor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.actelion.research.chem.AbstractDepictor
AbstractDepictor.DepictorDot, AbstractDepictor.DepictorLine
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_ELEM_WIDTH
-
Fields inherited from class com.actelion.research.chem.AbstractDepictor
cColorGray, cDModeAtomNo, cDModeBondNo, cDModeHiliteAllQueryFeatures, cDModeNoColorOnESRAndCIP, cDModeNoImplicitAtomLabelColors, cDModeNoImplicitHydrogen, cDModeNoStereoProblem, cDModeNoTabus, cDModeShowMapping, cDModeShowSymmetryDiastereotopic, cDModeShowSymmetryEnantiotopic, cDModeShowSymmetrySimple, cDModeSuppressChiralText, cDModeSuppressCIPParity, cDModeSuppressESR, cModeChiralTextAboveMolecule, cModeChiralTextBelowMolecule, cModeChiralTextOnFrameBottom, cModeChiralTextOnFrameTop, cModeInflateToAVBL, cModeInflateToHighResAVBL, cModeInflateToMaxAVBL, cModeMaxBondLength, COLOR_BLUE, COLOR_DARK_GREEN, COLOR_DARK_RED, COLOR_GREEN, COLOR_MAGENTA, COLOR_ORANGE, COLOR_RED, cOptAvBondLen, mContext
-
-
Constructor Summary
Constructors Constructor Description SVGDepictor(StereoMolecule mol, int displayMode, java.lang.String id)
SVGDepictor(StereoMolecule mol, java.lang.String id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
drawBlackLine(AbstractDepictor.DepictorLine theLine)
protected void
drawDottedLine(AbstractDepictor.DepictorLine theLine)
protected void
drawPolygon(GenericPolygon p)
protected void
drawString(java.lang.String theString, double x, double y)
protected void
fillCircle(double x, double y, double d)
java.lang.String
getId()
protected double
getLineWidth()
protected double
getStringWidth(java.lang.String theString)
protected int
getTextSize()
static java.lang.String
makeColor(int r, int g, int b)
protected void
onDrawAtom(int atom, java.lang.String symbol, double x, double y)
protected void
onDrawBond(int bond, double x1, double y1, double x2, double y2)
protected void
setColor(java.awt.Color theColor)
protected void
setLineWidth(double width)
protected void
setTextSize(int theSize)
DepictorTransformation
simpleValidateView(java.awt.geom.Rectangle2D.Double viewRect, int mode)
java.lang.String
toString()
-
Methods inherited from class com.actelion.research.chem.AbstractDepictor
applyTransformation, drawDot, getBoundingRect, getTransformation, init, paint, setAtomHighlightColors, setAtomText, setColor, setDisplayMode, setFactorTextSize, setForegroundColor, setOverruleColor, setTransformation, simpleUpdateCoords, updateCoords, validateView
-
-
-
-
Field Detail
-
DEFAULT_ELEM_WIDTH
public static final int DEFAULT_ELEM_WIDTH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SVGDepictor
public SVGDepictor(StereoMolecule mol, java.lang.String id)
-
SVGDepictor
public SVGDepictor(StereoMolecule mol, int displayMode, java.lang.String id)
-
-
Method Detail
-
makeColor
public static final java.lang.String makeColor(int r, int g, int b)
-
getId
public java.lang.String getId()
-
drawBlackLine
protected void drawBlackLine(AbstractDepictor.DepictorLine theLine)
- Specified by:
drawBlackLine
in classAbstractDepictor
-
drawDottedLine
protected void drawDottedLine(AbstractDepictor.DepictorLine theLine)
- Specified by:
drawDottedLine
in classAbstractDepictor
-
drawPolygon
protected void drawPolygon(GenericPolygon p)
- Specified by:
drawPolygon
in classAbstractDepictor
-
drawString
protected void drawString(java.lang.String theString, double x, double y)
- Specified by:
drawString
in classAbstractDepictor
-
fillCircle
protected void fillCircle(double x, double y, double d)
- Specified by:
fillCircle
in classAbstractDepictor
-
getLineWidth
protected double getLineWidth()
- Specified by:
getLineWidth
in classAbstractDepictor
-
getStringWidth
protected double getStringWidth(java.lang.String theString)
- Specified by:
getStringWidth
in classAbstractDepictor
-
getTextSize
protected int getTextSize()
- Specified by:
getTextSize
in classAbstractDepictor
-
setTextSize
protected void setTextSize(int theSize)
- Specified by:
setTextSize
in classAbstractDepictor
-
setLineWidth
protected void setLineWidth(double width)
- Specified by:
setLineWidth
in classAbstractDepictor
-
setColor
protected void setColor(java.awt.Color theColor)
- Specified by:
setColor
in classAbstractDepictor
-
onDrawBond
protected void onDrawBond(int bond, double x1, double y1, double x2, double y2)
- Overrides:
onDrawBond
in classAbstractDepictor
-
onDrawAtom
protected void onDrawAtom(int atom, java.lang.String symbol, double x, double y)
- Overrides:
onDrawAtom
in classAbstractDepictor
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
simpleValidateView
public DepictorTransformation simpleValidateView(java.awt.geom.Rectangle2D.Double viewRect, int mode)
- Overrides:
simpleValidateView
in classAbstractDepictor
-
-