Namespace for renderer system.
- Source:
Classes
- Abstract2DDrawBridge
- Abstract3DDrawBridge
- AbstractRenderer
- AbstractTextDrawBridge
- Base2DRenderer
- Base2DRenderer
- Base3DRenderer
- Base3DRenderer
- BaseGlyph2DRenderer
- BaseRichTextDrawer
- BoundInfoRecorder
- CanvasRendererBridge
- ChemCtab2DRenderer
- ChemCtab3DRenderer
- ChemDisplayTextUtils
- ChemObj2DRenderer
- ChemObj3DRenderer
- ChemObj3DRenderer
- ChemObjGroupList2DRenderer
- ChemObjGroupList3DRenderer
- ChemObjPainter
- ChemObjPainter
- ChemObjPainter2D
- ChemObjPainter2D
- ChemObjPainter3D
- ChemObjPainter3D
- ChemSpace2DRenderer
- ChemSpace3DRenderer
- ChemSpaceElement2DRenderer
- ChemSpaceElement3DRenderer
- ColorConfigs
- CompositeMolecule2DRenderer
- CompositeMolecule3DRenderer
- CompositeObj2DRenderer
- CompositeObj3DRenderer
- CompositeRenderer
- ConnectorDrawUtils
- CoordSystem
- Ctab2DRenderer
- DisplayLabelConfigs
- DrawPathUtils
- DummyRenderer
- Formula2DRenderer
- GeneralConfigs
- ImageBlock2DRenderer
- ImageBlock2DRenderer
- Length3DConfigs
- LengthConfigs
- MetaShapeUtils
- Model3DConfigs
- Molecule3DDisplayConfigs
- MoleculeDisplayConfigs
- ObjUtils
- PathGlyph2DRenderer
- PathGlyph2DRenderer
- PathGlyphCtab2DRenderer
- PredefinedConfigsMap
- RaphaelRendererBridge
- Reaction2DRenderer
- Render2DConfigs
- Render3DConfigs
- Render3DEnvironmentConfigs
- Render3DOptionUtils
- RenderColorUtils
- Renderer2DFactory
- Renderer3DFactory
- RenderOptionUtils
- RichText
- RichTextBased2DRenderer
- RichTextBased2DRenderer
- RichTextUtils
- StructFragment2DRenderer
- StructFragment2DRenderer
- StructFragment3DRenderer
- StructFragment3DRenderer
- TextBasedChemMarker2DRenderer
- TextBasedChemMarker2DRenderer
- TextBlock2DRenderer
- TextDrawUtils
- TextFontConfigs
- ThreeContext
- ThreeContext
- ThreeRendererBridge
- ThreeRendererBridge
- UnbondedElectronSetRenderer
Members
-
(static) Bond3DRenderMode
-
Enumeration of types to render a bond in 3D.
Properties:
Name Type Description NONEdo not render bond. WIREOne wire is used to represent one bond (multiple or not). MULTI_WIREMultiple wires are used for multiple bond. CYLINDEROne cylinder is used to represent one bond (multiple or not). MULTI_CYLINDERUse multiple cylinders for multiple bond. isWireModeCheck if connector / bond should be draw in lines. isCylinderModeCheck if connector / bond should be draw in cylinders. - Source:
-
(static) Bond3DRenderType
-
Enumeration of types to draw a connector (bond) in 3D render.
Properties:
Name Type Description SINGLEJust one line or cylinder, used for most bonds. DOUBLEDouble lines or cylinders, used for double bond. TRIPLETriple lines or cylinders, used for triple bond. DASHDash line or cylinder, usually used for H-bond. SOLID_DASHOne solid and a dash line or cylinder, used for aromatic bond. - Source:
-
(static) Bond3DSpliceMode
-
Enumeration of types to decide how a bond is splitted in 3D render.
Properties:
Name Type Description UNSPLITBond draw as a whole, not split. MID_SPLITSplit from the middle, as two line with the same length. WEIGHTING_SPLITSplit, a biger atom gains biger part of bond - Source:
-
(static) BondRenderType
-
Enumeration of types of rendering a bond line.
Properties:
Name Type Description SINGLEUsual single bond, draw in a thin line DOUBLEUsual double bond, draw in thin double line TRIPLEUsual triple bond, draw in thin triple line QUADDASHEDDashed bond line DASHED_DOUBLEDashed double line DASHED_TRIPLEDashed triple line SOLID_DASHA sold and a dashed line, usually used for aromatic bond ARROWEDA line with a arrow in the end, usually for coordinate-bond ARROWED_INVA line with a arrow in the head, usually for coordinate-bond HASHEDA hashed line BOLDA bold line, usually for bond above paper BOLD_DOUBLEA bold and a normal line, usually for double bond above paper BOLD_TRIPLEA bold and two normal line, usually for triple bond above paper BOLD_QUADBOLD_DASHA bold and a dash line, usually for aromatic bond above paper WEDGED_SOLIDA solid wedge triangle from atom 1 to atom 2, usually for wedge up bond WEDGED_SOLID_INVA solid wedge triangle from atom 2 to atom 1, usually for wedge up bond WEDGED_HOLLOWA hollow wedge triangle from atom 1 to atom 2, usually for wedge up bond WEDGED_HOLLOW_INVA hollow wedge triangle from atom 2 to atom 1, usually for wedge up bond WEDGED_HASHEDA hased wedge triangle from atom 1 to atom 2, usually for wedge down bond WEDGED_HASHED_INVA hased wedge triangle from atom 2 to atom 1, usually for wedge down bond WEDGED_SOLID_BOTHA bold rectangle, indicating a bond near the observer. Usually connected with wedged bonds. WEDGED_HOLLOW_BOTHA bold hollow rectangle, indicating a bond near the observer. Usually connected with wedged bonds. WAVYA wavy line, usually used for bond with uncertain stereo SCISSORS_DOUBLEA cross double bond, means an uncertain E or Z stereo - Source:
-
(static) BoxXAlignment
-
Enumeration of alignment types of box in horizontal direction.
Properties:
Name Type Description LEFTRIGHTCENTER- Source:
-
(static) BoxYAlignment
-
Enumeration of alignment types of box in vertical direction.
Properties:
Name Type Description TOPBOTTOMCENTER- Source:
-
(static) ChargeMarkRenderType
-
Enumeration of types to render a charge on atom.
Properties:
Name Type Description NUM_WITH_SYMBOLNumber + symbol, such as 2+, 3- DEFAULTCIRCLE_AROUNDSurrond with a circle to emphasis, the circle will only be draw when charge = +1/-1 - Source:
-
(static) CoordPos
-
The position of coord point in object box.
Properties:
Name Type Description CENTERCenter point of object. CORNER_TLTop left point of object, usually used in blocks of 2D context. DEFAULTDefault value, same as CENTER. - Source:
-
(static, constant) DEF_ATOM_ATOMIC_NUM
-
C is the most common element in organic molecule. So the label of C will be ignored in bond-line formula.
- Source:
-
(static) DrawBridge2DMananger
-
Draw bridge manager for 2D rendering.
- Source:
-
(static) DrawBridge3DMananger
-
Draw bridge manager for 3D rendering.
- Source:
-
(static) HydrogenDisplayLevel
-
Enumeration of hydrongen display strategy (espcially in 2D renderer).
Properties:
Name Type Description NONENo hydrongen is displayed EXPLICITOnly display explicit hydrogens. UNMATCHED_EXPLICITDisplay explicit hydrogens only when the count is not the same as implicit. ALLDisplay all hydrogens, whether explicit or implicit ones. DEFAULTDefault is EXPLICIT. - Source:
-
(static) MetaShapeType
-
Enumeration of shape types to describle meta shape info.
Properties:
Name Type Description POINTA single point on context. Can be determinated by a single coord ({[coord]}). CIRCLEA circle on context. Can be determinated by a single coord and a radius. ({[coord], radius}) LINEA line on context, determinated by two coords and a width property ({[coord1, coord2], width). RECTA rectangle on context, determinated by two coords ({[coord1, coord2]}). ARCAn arc on context, determinated by a single coord and radius, startAngle, endAngle, anticlockwise. POLYLINEUnclosed polyline, determinated by a set of coords ({[coord1, coord2, coord3, ... }). POLYGONPolygon, determinated by a set of coords ({[coord1, coord2, coord3, ... }). SPHEREA shpere on 3D context. Can be determinated by a single coord and a radius. ({[coord], radius}) CYLINDERCylinder in 3D context. Can be determinated by two coords and a radius. ({[coord1, coord2], radius}) COMPOSITEA complex shape composited of a series of child shapes. In implementation, an array of meta shapes will map to this type. - Source:
-
(static) Molecule3DDisplayType
-
Enumeration of types to render a molecule in 3D.
Properties:
Name Type Description WIREWire frame STICKSSticks BALL_STICKBall and stick SPACE_FILLSpace fill DEFAULTDefault is ball and stick - Source:
-
(static) MoleculeDisplayType
-
Enumeration of molecule display type, condensed formula or bond-line formula.
Properties:
Name Type Description SKELETALbond-line formula CONDENSEDCondensed formula DEFAULT- Source:
-
(static) Node3DRenderMode
-
Enumeration of types to draw a node (atom) in 3D render.
Properties:
Name Type Description NONEDo not render explicit atom, used in WIRE display mode. BALLRender atom as ball, used in BALL_STICK display mode. SPACERender atom as a huge ball, according to Vdw radius, used in SPACE_FILL display mode. - Source:
-
(static) NodeLabelDisplayMode
-
Enumeration of node label (usually atom label) display mode (especially in 2D renderer).
Properties:
Name Type Description HIDDENLabel is hidden SHOWNLabel should be shown SMARTWhether show label is decided by the display type of molecule DEFAULTDefault is SMART - Source:
-
(static) ObjectUpdateType
-
Enumeration of types of updating a object.
Properties:
Name Type Description MODIFYModify a existing object. ADDAdd a new object. REMOVERemove a existing object. CLEARClear whole object. - Source:
-
(static) Render3DGraphicQuality
-
Enumeration of graphic quality levels to render objects in 3D.
Properties:
Name Type Description EXTREME_LOWLOWMEDIUMHIGHEXTREME_HIGH- Source:
-
(static) RendererType
-
Enumeration of renderer types: 2D or 3D.
Properties:
Name Type Description R2D2D renderer. R3D3D renderer. - Source:
-
(static) TextAlign
-
Enumeration of horizontal / vertical alignment of text.
Properties:
Name Type Description DEFAULTLEFTRIGHTTOPBOTTOMCENTERLEADINGTRAILINGgetAbsAlignLEADING and TRAILING are related align mode, related to text direction. This function returns absolute align value due to textDirection. - Source:
-
(static) TextBoxAlignmentMode
-
Enumeration of alignment mode of a rich text box.
Properties:
Name Type Description BOXAlignment based on the whole text box ANCHORAlignment based on the childmost anchor item of rich text - Source:
-
(static) TextDirection
-
Enumeration of direction of text (especially rich text label).
Properties:
Name Type Description DEFAULTLTRLeft to right. RTLRight to left. TTBTop to bottom. BTTBottom to top INHERITInherit from parent setting - Source:
Methods
-
(static) get2DRendererClass(chemObj) → {Kekule.Render.AbstractRenderer}
-
Returns a suitable 2D renderer class for chemObj
Parameters:
Name Type Description chemObjObject - Source:
Returns:
-
(static) get3DRendererClass(chemObj) → {Kekule.Render.AbstractRenderer}
-
Returns a suitable 3D renderer class for chemObj
Parameters:
Name Type Description chemObjObject - Source:
Returns:
-
(static) getRender2DConfigs() → {Kekule.Render.RenderConfigs}
-
Get a singleton instance of Kekule.Render.Render2DConfigs.
- Source:
Returns:
- Type
- Kekule.Render.RenderConfigs
-
(static) getRender3DConfigs() → {Kekule.Render.RenderConfigs}
-
Get a singleton instance of Kekule.Render.Render3DConfigs.
- Source:
Returns:
- Type
- Kekule.Render.RenderConfigs