Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updated for more IGeneratorParameter changes in BasicAtomGenerator

  • Loading branch information...
commit 983061f5923d3d81c5d1ce8d74b692c1bbfb58c9 1 parent 78fb9bf
Egon Willighagen egonw authored
5 src/main/org/openscience/cdk/renderer/generators/ExtendedAtomGenerator.java
@@ -49,7 +49,7 @@ public IRenderingElement generate(
49 49 || invisibleHydrogen(atom, model)
50 50 || (invisibleCarbon(atom, ac, model) && !model.getDrawNumbers())) {
51 51 return null;
52   - } else if (model.getIsCompact()) {
  52 + } else if (model.getRenderingParameter(CompactAtom.class).getValue()) {
53 53 return this.generateCompactElement(atom, model);
54 54 } else {
55 55 String text;
@@ -69,7 +69,8 @@ public IRenderingElement generate(
69 69 }
70 70
71 71 public boolean hideAtomSymbol(IAtom atom, RendererModel model) {
72   - return atom.getSymbol().equals("C") && !model.getKekuleStructure();
  72 + return atom.getSymbol().equals("C") &&
  73 + !model.getRenderingParameter(KekuleStructure.class).getValue();
73 74 }
74 75
75 76 public void decorate(TextGroupElement textGroup,

0 comments on commit 983061f

Please sign in to comment.
Something went wrong with that request. Please try again.