You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
John May edited this page Aug 18, 2014
·
13 revisions
A popular defacto style used for depicting structures is 'ACS 1996' (see. Structure_drawing, Wikipedia). This style can be approximated with the follow standard generator configuration.
// 26 pt is also okayFontfont = newFont("Arial", Font.PLAIN, 24);
// note the font manager is not usedAtomContainerRendererrenderer
= newAtomContainerRenderer(Arrays.asList(newBasicSceneGenerator(),
newStandardGenerator(font)),
newAWTFontManager());
Renderer2DModelrendererModel = renderer.getRenderer2DModel();
rendererModel.set(StandardGenerator.AtomColor.class,
newUniColor(Color.BLACK));
rendererModel.set(StandardGenerator.Visibility.class,
SymbolVisibility.iupacRecommendations());
rendererModel.set(StandardGenerator.StrokeRatio.class,
0.85);
rendererModel.set(StandardGenerator.SymbolMarginRatio.class,
4d);
Using the above configuration, the following SVG can be generated. It is shown beside the current wikipedia SVG (attributed below).