Package com.actelion.research.chem
Class Depictor2D
- java.lang.Object
-
- com.actelion.research.chem.AbstractDepictor<java.awt.Graphics2D>
-
- com.actelion.research.chem.Depictor2D
-
public class Depictor2D extends AbstractDepictor<java.awt.Graphics2D>
-
-
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, 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 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(GenericPolygon p)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, getAtomX, getAtomY, getBackgroundColor, getBoundingRect, getMolecule, getTransformation, hiliteAtomBackgrounds, onDrawAtom, onDrawBond, paint, setAtomHighlightColors, setAtomText, setColor, setDisplayMode, setFactorTextSize, setForegroundColor, setOverruleColor, setTransformation, simpleCalculateBounds, 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<java.awt.Graphics2D>
-
drawBlackLine
protected void drawBlackLine(AbstractDepictor.DepictorLine theLine)
- Specified by:
drawBlackLinein classAbstractDepictor<java.awt.Graphics2D>
-
drawDottedLine
protected void drawDottedLine(AbstractDepictor.DepictorLine theLine)
- Specified by:
drawDottedLinein classAbstractDepictor<java.awt.Graphics2D>
-
drawString
protected void drawString(java.lang.String theString, double x, double y)- Specified by:
drawStringin classAbstractDepictor<java.awt.Graphics2D>
-
drawPolygon
protected void drawPolygon(GenericPolygon p)
- Specified by:
drawPolygonin classAbstractDepictor<java.awt.Graphics2D>
-
fillCircle
protected void fillCircle(double x, double y, double d)- Specified by:
fillCirclein classAbstractDepictor<java.awt.Graphics2D>
-
getStringWidth
protected double getStringWidth(java.lang.String theString)
- Specified by:
getStringWidthin classAbstractDepictor<java.awt.Graphics2D>
-
setTextSize
protected void setTextSize(int theSize)
- Specified by:
setTextSizein classAbstractDepictor<java.awt.Graphics2D>
-
getTextSize
public int getTextSize()
- Specified by:
getTextSizein classAbstractDepictor<java.awt.Graphics2D>
-
getLineWidth
protected double getLineWidth()
- Specified by:
getLineWidthin classAbstractDepictor<java.awt.Graphics2D>
-
setLineWidth
protected void setLineWidth(double lineWidth)
- Specified by:
setLineWidthin classAbstractDepictor<java.awt.Graphics2D>
-
setColor
protected void setColor(java.awt.Color theColor)
- Specified by:
setColorin classAbstractDepictor<java.awt.Graphics2D>
-
-