Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Turn off atom number by default in structured 2d view.

This shold be done with a default preference but doing it here for the time being.
  • Loading branch information...
commit 2b047a59903360e5263247d8f70c22a0801e851a 1 parent 9cdba31
Arvid Berg authored
View
2  ...t.bioclipse.cdk.jchempaint.view/src/net/bioclipse/cdk/jchempaint/view/JChemPaintView.java
@@ -73,6 +73,7 @@
import org.openscience.cdk.interfaces.IAtomContainer;
import org.openscience.cdk.interfaces.IChemModel;
import org.openscience.cdk.renderer.generators.IGenerator;
+import org.openscience.cdk.renderer.generators.AtomNumberGenerator.WillDrawAtomNumbers;
import org.openscience.cdk.tools.manipulator.ChemModelManipulator;
/**
@@ -118,6 +119,7 @@ public void createPartControl(Composite parent) {
}
};
canvasView.setSize( 200, 200 );
+ canvasView.getRenderer2DModel().set(WillDrawAtomNumbers.class, false);
// Register this page as a listener for selections
getViewSite().getPage().addSelectionListener(this);

0 comments on commit 2b047a5

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