Package org.apache.tuscany.sca.diagram.generator

Examples of org.apache.tuscany.sca.diagram.generator.DiagramGenerator


                Document doc = db.parse(str);

                EntityBuilder eb = new EntityBuilder(doc);
                CompositeEntity comp = eb.buildCompositeEntity();

                DiagramGenerator dg = new DiagramGenerator(comp, isHtml, baseURL);
                Document svg = dg.buildSVGDocument();

                if (isJpeg) {
                    String jpgFileName = comp.getName() + comp.getFileNameSuffix() + ".jpg";
                    svgToJPEG(svg, new File(dir, jpgFileName));
                }
View Full Code Here


        try {
            NodeFactory factory = NodeFactory.getInstance();
            NodeExtension node = factory.loadNode(configuration);
            TuscanyCompositeEntityBuilder builder = new TuscanyCompositeEntityBuilder(node.getDomainComposite());
            CompositeEntity compositeEntity = builder.buildCompositeEntity();
            DiagramGenerator generator = new DiagramGenerator(compositeEntity, false, baseURL);
            Document doc = generator.buildSVGDocument();
            return extractSvg(doc);
        } finally {
            if (currentTCCL != null) {
                Thread.currentThread().setContextClassLoader(currentTCCL);
            }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.diagram.generator.DiagramGenerator

Copyright © 2018 www.massapicom. 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.