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 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()voidhiliteAtomBackgrounds(int[] atomARGB, float[] radius)May be overridden to get a more appealing highlighting than just round circlesprotected 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, onDrawAtom, onDrawBond, paint, setAtomHighlightColors, setAtomText, setColor, setDisplayMode, setFactorTextSize, setForegroundColor, setOverruleColor, setTransformation, simpleCalculateBounds, 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:
initin classAbstractDepictor<GenericDrawContext>
-
drawBlackLine
protected void drawBlackLine(AbstractDepictor.DepictorLine theLine)
- Specified by:
drawBlackLinein classAbstractDepictor<GenericDrawContext>
-
drawDottedLine
protected void drawDottedLine(AbstractDepictor.DepictorLine theLine)
- Specified by:
drawDottedLinein classAbstractDepictor<GenericDrawContext>
-
drawString
protected void drawString(java.lang.String theString, double x, double y)- Specified by:
drawStringin classAbstractDepictor<GenericDrawContext>
-
drawPolygon
protected void drawPolygon(GenericPolygon p)
- Specified by:
drawPolygonin classAbstractDepictor<GenericDrawContext>
-
fillCircle
protected void fillCircle(double x, double y, double d)- Specified by:
fillCirclein classAbstractDepictor<GenericDrawContext>
-
getStringWidth
protected double getStringWidth(java.lang.String theString)
- Specified by:
getStringWidthin classAbstractDepictor<GenericDrawContext>
-
setTextSize
protected void setTextSize(int theSize)
- Specified by:
setTextSizein classAbstractDepictor<GenericDrawContext>
-
getTextSize
public int getTextSize()
- Specified by:
getTextSizein classAbstractDepictor<GenericDrawContext>
-
hiliteAtomBackgrounds
public void hiliteAtomBackgrounds(int[] atomARGB, float[] radius)Description copied from class:AbstractDepictorMay be overridden to get a more appealing highlighting than just round circles- Overrides:
hiliteAtomBackgroundsin classAbstractDepictor<GenericDrawContext>- Parameters:
atomARGB- if alpha < 1 then the background is mixed in accordinglyradius- <= 1.0; if null, then a default of 0.5 of the average bond length is used
-
getLineWidth
protected double getLineWidth()
- Specified by:
getLineWidthin classAbstractDepictor<GenericDrawContext>
-
setLineWidth
protected void setLineWidth(double lineWidth)
- Specified by:
setLineWidthin classAbstractDepictor<GenericDrawContext>
-
setColor
protected void setColor(java.awt.Color theColor)
- Specified by:
setColorin classAbstractDepictor<GenericDrawContext>
-
-