@@ -44,7 +44,7 @@ enum Order {
4444
4545 private final Integer bondedElectronPairs ;
4646
47- private Order (Integer bondedElectronPairs ) {
47+ Order (Integer bondedElectronPairs ) {
4848 this .bondedElectronPairs = bondedElectronPairs ;
4949 }
5050
@@ -131,6 +131,54 @@ enum Stereo {
131131 E_Z_BY_COORDINATES
132132 }
133133
134+ /**
135+ * Bond display style, controlling how bonds appear in a 2D depiction.
136+ */
137+ enum Display {
138+ /** Display as a solid line (default). */
139+ Solid ,
140+ /** Display as a dashed line. */
141+ Dash ,
142+ /** Display as a hashed line. */
143+ Hash ,
144+ /** Display as a bold line. */
145+ Bold ,
146+ /** Display as a wavy line. */
147+ Wavy ,
148+ /** Display as a dotted line. */
149+ Dot ,
150+ /**
151+ * Display as a hashed wedge, with the narrow end
152+ * towards the begin atom of the bond ({@link IBond#getBegin()}).
153+ */
154+ WedgedHashBegin ,
155+ /**
156+ * Display as a hashed wedge, with the narrow end
157+ * towards the end atom of the bond ({@link IBond#getEnd()}).
158+ */
159+ WedgedHashEnd ,
160+ /**
161+ * Display as a bold wedge, with the narrow end
162+ * towards the begin atom of the bond ({@link IBond#getBegin()}).
163+ */
164+ WedgeBegin ,
165+ /**
166+ * Display as a bold wedge, with the narrow end
167+ * towards the end atom of the bond ({@link IBond#getEnd()}).
168+ */
169+ WedgeEnd ,
170+ /**
171+ * Display as an arrow (e.g. coordination bond), the arrow points
172+ * to the begin ({@link IBond#getBegin()}) atom.
173+ */
174+ ArrowBeg ,
175+ /**
176+ * Display as an arrow (e.g. coordination bond), the arrow points
177+ * to the end ({@link IBond#getEnd()}) atom.
178+ */
179+ ArrowEnd
180+ }
181+
134182 /**
135183 * Returns the Iterable to atoms making up this bond.
136184 *
@@ -270,13 +318,27 @@ enum Stereo {
270318 IBond .Stereo getStereo ();
271319
272320 /**
273- * Sets the stereo descriptor for this bond.
321+ * Sets the stereo descriptor for this bond. Note this function will
322+ * also modify the bond display style.
274323 *
275324 * @param stereo The stereo descriptor to be assigned to this bond.
276325 * @see #getStereo
326+ * @see #setDisplay(Display)
277327 */
278328 void setStereo (IBond .Stereo stereo );
279329
330+ /**
331+ * Access the bond display style.
332+ * @return the bond display
333+ */
334+ IBond .Display getDisplay ();
335+
336+ /**
337+ * Set the bond display style.
338+ * @param display the display
339+ */
340+ void setDisplay (IBond .Display display );
341+
280342 /**
281343 * Returns the geometric 2D center of the bond.
282344 *
0 commit comments