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 intDEFAULT_ELEM_WIDTH-
Fields inherited from class com.actelion.research.chem.AbstractDepictor
cColorGray, cDModeAtomNo, cDModeBondNo, cDModeHiliteAllQueryFeatures, cDModeNoColorOnESRAndCIP, cDModeNoImplicitAtomLabelColors, 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, mG
-
-
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 voiddrawBlackLine(AbstractDepictor.DepictorLine theLine)protected voiddrawDottedLine(AbstractDepictor.DepictorLine theLine)protected voiddrawPolygon(double[] x, double[] y, int count)protected voiddrawString(java.lang.String theString, double x, double y)protected voidfillCircle(double x, double y, double d)java.lang.StringgetId()protected doublegetLineWidth()protected doublegetStringWidth(java.lang.String theString)protected intgetTextSize()static java.lang.StringmakeColor(int r, int g, int b)protected voidonDrawAtom(int atom, java.lang.String symbol, double x, double y)protected voidonDrawBond(int bond, double x1, double y1, double x2, double y2)protected voidsetColor(java.awt.Color theColor)protected voidsetLineWidth(double width)protected voidsetTextSize(int theSize)DepictorTransformationsimpleValidateView(java.awt.geom.Rectangle2D.Double viewRect, int mode)java.lang.StringtoString()-
Methods inherited from class com.actelion.research.chem.AbstractDepictor
applyTransformation, drawDot, getBoundingRect, getTransformation, init, paint, 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:
drawBlackLinein classAbstractDepictor
-
drawDottedLine
protected void drawDottedLine(AbstractDepictor.DepictorLine theLine)
- Specified by:
drawDottedLinein classAbstractDepictor
-
drawPolygon
protected void drawPolygon(double[] x, double[] y, int count)- Specified by:
drawPolygonin classAbstractDepictor
-
drawString
protected void drawString(java.lang.String theString, double x, double y)- Specified by:
drawStringin classAbstractDepictor
-
fillCircle
protected void fillCircle(double x, double y, double d)- Specified by:
fillCirclein classAbstractDepictor
-
getLineWidth
protected double getLineWidth()
- Specified by:
getLineWidthin classAbstractDepictor
-
getStringWidth
protected double getStringWidth(java.lang.String theString)
- Specified by:
getStringWidthin classAbstractDepictor
-
getTextSize
protected int getTextSize()
- Specified by:
getTextSizein classAbstractDepictor
-
setTextSize
protected void setTextSize(int theSize)
- Specified by:
setTextSizein classAbstractDepictor
-
setLineWidth
protected void setLineWidth(double width)
- Specified by:
setLineWidthin classAbstractDepictor
-
setColor
protected void setColor(java.awt.Color theColor)
- Specified by:
setColorin classAbstractDepictor
-
onDrawBond
protected void onDrawBond(int bond, double x1, double y1, double x2, double y2)- Overrides:
onDrawBondin classAbstractDepictor
-
onDrawAtom
protected void onDrawAtom(int atom, java.lang.String symbol, double x, double y)- Overrides:
onDrawAtomin classAbstractDepictor
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
simpleValidateView
public DepictorTransformation simpleValidateView(java.awt.geom.Rectangle2D.Double viewRect, int mode)
- Overrides:
simpleValidateViewin classAbstractDepictor
-
-