Package com.actelion.research.chem
Class Depictor2D
- java.lang.Object
-
- com.actelion.research.chem.AbstractDepictor
-
- com.actelion.research.chem.Depictor2D
-
public class Depictor2D extends AbstractDepictor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.actelion.research.chem.AbstractDepictor
AbstractDepictor.DepictorDot, AbstractDepictor.DepictorLine
-
-
Field Summary
-
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 Depictor2D(StereoMolecule mol)Depictor2D(StereoMolecule mol, int displayMode)
-
Method Summary
All 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)protected doublegetLineWidth()protected doublegetStringWidth(java.lang.String theString)intgetTextSize()protected voidinit()protected voidsetColor(java.awt.Color theColor)protected voidsetLineWidth(double lineWidth)protected voidsetTextSize(int theSize)-
Methods inherited from class com.actelion.research.chem.AbstractDepictor
applyTransformation, drawDot, getBoundingRect, getTransformation, onDrawAtom, onDrawBond, paint, setAtomText, setColor, setDisplayMode, setFactorTextSize, setForegroundColor, setOverruleColor, setTransformation, simpleUpdateCoords, simpleValidateView, updateCoords, validateView
-
-
-
-
Constructor Detail
-
Depictor2D
public Depictor2D(StereoMolecule mol)
-
Depictor2D
public Depictor2D(StereoMolecule mol, int displayMode)
-
-
Method Detail
-
init
protected void init()
- Overrides:
initin classAbstractDepictor
-
drawBlackLine
protected void drawBlackLine(AbstractDepictor.DepictorLine theLine)
- Specified by:
drawBlackLinein classAbstractDepictor
-
drawDottedLine
protected void drawDottedLine(AbstractDepictor.DepictorLine theLine)
- Specified by:
drawDottedLinein classAbstractDepictor
-
drawString
protected void drawString(java.lang.String theString, double x, double y)- Specified by:
drawStringin classAbstractDepictor
-
drawPolygon
protected void drawPolygon(double[] x, double[] y, int count)- Specified by:
drawPolygonin classAbstractDepictor
-
fillCircle
protected void fillCircle(double x, double y, double d)- Specified by:
fillCirclein classAbstractDepictor
-
getStringWidth
protected double getStringWidth(java.lang.String theString)
- Specified by:
getStringWidthin classAbstractDepictor
-
setTextSize
protected void setTextSize(int theSize)
- Specified by:
setTextSizein classAbstractDepictor
-
getTextSize
public int getTextSize()
- Specified by:
getTextSizein classAbstractDepictor
-
getLineWidth
protected double getLineWidth()
- Specified by:
getLineWidthin classAbstractDepictor
-
setLineWidth
protected void setLineWidth(double lineWidth)
- Specified by:
setLineWidthin classAbstractDepictor
-
setColor
protected void setColor(java.awt.Color theColor)
- Specified by:
setColorin classAbstractDepictor
-
-