Examples of AWTFontManager


Examples of org.openscience.cdk.renderer.font.AWTFontManager

            throws IOException {
        // setup the Renderer and the controller 'model'

        if (this.renderer == null) {
            this.renderer = new Renderer(makeGenerators(chemModel),
                    makeReactionGenerators(), new AWTFontManager());
            // any specific rendering settings defaults that overwrite user settings should go here
            //this.renderer.getRenderer2DModel().setShowEndCarbons(false);
            //this.renderer.getRenderer2DModel().setShowAromaticity(false);
        }
        this.setFitToScreen(fitToScreen);
View Full Code Here

Examples of org.openscience.jchempaint.renderer.font.AWTFontManager

    private static String getMolSvg(IAtomContainer cdkmol, int width, int height) throws UnsupportedEncodingException, SVGGraphics2DIOException {
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        List<IGenerator> generators = new ArrayList<IGenerator>();
        generators.add(new BasicBondGenerator());
        generators.add(new BasicAtomGenerator());
        Renderer renderer = new Renderer(generators,new AWTFontManager(), false);
        RendererModel r2dm = renderer.getRenderer2DModel();
        r2dm.setDrawNumbers(false);
        r2dm.setBackColor(Color.LIGHT_GRAY);
        r2dm.setIsCompact(true);
        r2dm.setShowImplicitHydrogens(false);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.