Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated for BondWidth now being a IGeneratorParameter

  • Loading branch information...
commit ef78caf9107f9e73f50f08176cab5c91d3df38eb 1 parent de3cf01
Egon Willighagen egonw authored
3  src/main/org/openscience/cdk/renderer/generators/ExternalHighlightGenerator.java
View
@@ -37,6 +37,7 @@
import org.openscience.cdk.renderer.elements.IRenderingElement;
import org.openscience.cdk.renderer.elements.LineElement;
import org.openscience.cdk.renderer.elements.OvalElement;
+import org.openscience.cdk.renderer.generators.BasicBondGenerator.BondWidth;
/**
* @cdk.module rendercontrol
@@ -68,7 +69,7 @@ public IRenderingElement generate(IAtom atom, RendererModel model) {
public IRenderingElement generate(IBond bond, RendererModel model) {
Point2d p1 = bond.getAtom(0).getPoint2d();
Point2d p2 = bond.getAtom(1).getPoint2d();
- double w = model.getBondWidth() / model.getScale();
+ double w = model.getRenderingParameter(BondWidth.class).getValue() / model.getScale();
return new LineElement(
p1.x, p1.y, p2.x, p2.y, w, model.getExternalHighlightColor());
}
Please sign in to comment.
Something went wrong with that request. Please try again.