Skip to content

Commit 2e8fd8f

Browse files
committed
Add option to the depiction generator.
1 parent 6d9f33b commit 2e8fd8f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

app/depict/src/main/java/org/openscience/cdk/depict/DepictionGenerator.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,17 @@ public DepictionGenerator withAromaticDisplay() {
11091109
true);
11101110
}
11111111

1112+
1113+
/**
1114+
* Indicate whether <sup>2</sup>H should be rendered as 'D'. Default: true.
1115+
* @param v the value
1116+
* @return new generator for method chaining
1117+
*/
1118+
public DepictionGenerator withDeuteriumSymbol(boolean v) {
1119+
return withParam(StandardGenerator.DeuteriumSymbol.class,
1120+
v);
1121+
}
1122+
11121123
/**
11131124
* Low-level option method to set a rendering model parameter.
11141125
*

0 commit comments

Comments
 (0)