Examples of SVGProducer


Examples of com.puppetlabs.geppetto.graph.SVGProducer

    assertTrue("Validation had errors", chain.getSeverity() < Diagnostic.ERROR);
    getDependencyGraphProducer().produceGraph(
      null, "Demo DefaultModules Dependencies", null, dotStream, buildResult, chain);

    // produce SVG
    SVGProducer svgProducer = getSVGProducer();

    FileInputStream dotInputStream = new FileInputStream(new File(outputFolder, "demoGraphSVG.dot"));

    // turn the produced dot around and send it to the SVG producer.
    // create a stream to collect the SVG output
    FileOutputStream svgStream = new FileOutputStream(new File(outputFolder, "demoGraphSVG.svg"));
    svgProducer.produceSVG(new BufferedInputStream(dotInputStream), svgStream, false, new NullProgressMonitor());

  }
View Full Code Here

Examples of com.puppetlabs.geppetto.graph.SVGProducer

      null, "Module dependencies for graphTestData", null, stream, buildResult, chain);

    assertTrue("Stream should contain data", stream.size() > 10);

    // produce SVG
    SVGProducer svgProducer = getSVGProducer();

    // turn the produced dot around and send it to the SVG producer.
    ByteArrayInputStream dotStream = new ByteArrayInputStream(stream.toByteArray());

    // Write the dot to a file:
    File outputFolder = TestDataProvider.getTestOutputDir();
    FileOutputStream tmp = new FileOutputStream(new File(outputFolder, "dependecyGraphSVG.dot"));
    tmp.write(stream.toByteArray());
    tmp.close();

    // create a stream to collect the SVG output
    ByteArrayOutputStream svgStream = new ByteArrayOutputStream();
    svgProducer.produceSVG(dotStream, svgStream, false, new NullProgressMonitor());

    // Write the svg to a file:
    tmp = new FileOutputStream(new File(outputFolder, "dependecyGraphSVG.svg"));
    tmp.write(svgStream.toByteArray());
    tmp.close();
View Full Code Here

Examples of com.puppetlabs.geppetto.graph.SVGProducer

    BuildResult buildResult = vs.validate(chain, root, options, null, SubMonitor.convert(null));
    getDependencyGraphProducer().produceGraph(
      null, "Forge DefaultModules Dependencies", null, dotStream, buildResult, chain);

    // produce SVG
    SVGProducer svgProducer = getSVGProducer();

    FileInputStream dotInputStream = new FileInputStream(new File(outputFolder, "forgeGraphSVG.dot"));

    // turn the produced dot around and send it to the SVG producer.
    // create a stream to collect the SVG output
    FileOutputStream svgStream = new FileOutputStream(new File(outputFolder, "forgeGraphSVG.svg"));
    svgProducer.produceSVG(new BufferedInputStream(dotInputStream), svgStream, false, new NullProgressMonitor());

  }
View Full Code Here

Examples of com.puppetlabs.geppetto.graph.SVGProducer

    BuildResult buildResult = vs.validate(chain, root, options, null, SubMonitor.convert(null));
    getDependencyGraphProducer().produceGraph(
      null, "Karel DefaultModules Dependencies", null, dotStream, buildResult, chain);

    // produce SVG
    SVGProducer svgProducer = getSVGProducer();

    FileInputStream dotInputStream = new FileInputStream(new File(outputFolder, "karelGraphSVG.dot"));

    // turn the produced dot around and send it to the SVG producer.
    // create a stream to collect the SVG output
    FileOutputStream svgStream = new FileOutputStream(new File(outputFolder, "karelGraphSVG.svg"));
    svgProducer.produceSVG(new BufferedInputStream(dotInputStream), svgStream, false, new NullProgressMonitor());

  }
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.