Examples of DiagramGenerator


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

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

        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

Examples of org.eclipse.gmf.runtime.diagram.ui.render.clipboard.DiagramGenerator

    @Override
    public DiagramGenerator copyToImage(DiagramEditPart part,
        IPath destination, ImageFileFormat format,
        IProgressMonitor monitor) throws CoreException {
      DiagramGenerator result = super.copyToImage(part, destination, format, monitor);
     
      // keep track of the part -> destination
      partDestinationMap.put(part, destination);
      partEObjectMap.put(part, part.resolveSemanticElement());
     
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.