Class GenericDepictor
- java.lang.Object
-
- com.actelion.research.chem.AbstractDepictor<GenericDrawContext>
-
- com.actelion.research.gui.generic.GenericDepictor
-
public class GenericDepictor extends AbstractDepictor<GenericDrawContext>
-
-
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 GenericDepictor(StereoMolecule mol)
GenericDepictor(StereoMolecule mol, int displayMode)
-
Method Summary
All 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)
protected double
getLineWidth()
protected double
getStringWidth(java.lang.String theString)
int
getTextSize()
protected void
init()
protected void
setColor(java.awt.Color theColor)
protected void
setLineWidth(double lineWidth)
protected void
setTextSize(int theSize)
-
Methods inherited from class com.actelion.research.chem.AbstractDepictor
applyTransformation, drawDot, getBoundingRect, getTransformation, onDrawAtom, onDrawBond, paint, setAtomHighlightColors, setAtomText, setColor, setDisplayMode, setFactorTextSize, setForegroundColor, setOverruleColor, setTransformation, simpleUpdateCoords, simpleValidateView, updateCoords, validateView
-
-
-
-
Constructor Detail
-
GenericDepictor
public GenericDepictor(StereoMolecule mol)
-
GenericDepictor
public GenericDepictor(StereoMolecule mol, int displayMode)
-
-
Method Detail
-
init
protected void init()
- Overrides:
init
in classAbstractDepictor<GenericDrawContext>
-
drawBlackLine
protected void drawBlackLine(AbstractDepictor.DepictorLine theLine)
- Specified by:
drawBlackLine
in classAbstractDepictor<GenericDrawContext>
-
drawDottedLine
protected void drawDottedLine(AbstractDepictor.DepictorLine theLine)
- Specified by:
drawDottedLine
in classAbstractDepictor<GenericDrawContext>
-
drawString
protected void drawString(java.lang.String theString, double x, double y)
- Specified by:
drawString
in classAbstractDepictor<GenericDrawContext>
-
drawPolygon
protected void drawPolygon(GenericPolygon p)
- Specified by:
drawPolygon
in classAbstractDepictor<GenericDrawContext>
-
fillCircle
protected void fillCircle(double x, double y, double d)
- Specified by:
fillCircle
in classAbstractDepictor<GenericDrawContext>
-
getStringWidth
protected double getStringWidth(java.lang.String theString)
- Specified by:
getStringWidth
in classAbstractDepictor<GenericDrawContext>
-
setTextSize
protected void setTextSize(int theSize)
- Specified by:
setTextSize
in classAbstractDepictor<GenericDrawContext>
-
getTextSize
public int getTextSize()
- Specified by:
getTextSize
in classAbstractDepictor<GenericDrawContext>
-
getLineWidth
protected double getLineWidth()
- Specified by:
getLineWidth
in classAbstractDepictor<GenericDrawContext>
-
setLineWidth
protected void setLineWidth(double lineWidth)
- Specified by:
setLineWidth
in classAbstractDepictor<GenericDrawContext>
-
setColor
protected void setColor(java.awt.Color theColor)
- Specified by:
setColor
in classAbstractDepictor<GenericDrawContext>
-
-