Package com.puppetlabs.geppetto.graph

Examples of com.puppetlabs.geppetto.graph.ProgressMonitorCancelIndicator


    final SubMonitor ticker = SubMonitor.convert(monitor, 1000);
    CatalogDeltaGraphProducer graphProducer = injector.getInstance(CatalogDeltaGraphProducer.class);
    Catalog oldCatalog = CatalogJsonSerializer.load(oldCatalogStream);
    Catalog newCatalog = CatalogJsonSerializer.load(newCatalogStream);

    ICancel cancel = new ProgressMonitorCancelIndicator(ticker.newChild(IProgressMonitor.UNKNOWN), 1000);
    graphProducer.produceGraph(cancel, catalogName, oldCatalog, oldRoot, newCatalog, newRoot, dotStream);
  }
View Full Code Here


  public void produceDOTGraph(String catalogName, InputStream catalogStream, OutputStream dotStream,
      IProgressMonitor monitor, IPath root) throws IOException {
    final SubMonitor ticker = SubMonitor.convert(monitor, 1000);
    CatalogGraphProducer graphProducer = injector.getInstance(CatalogGraphProducer.class);
    ICancel cancel = new ProgressMonitorCancelIndicator(ticker.newChild(IProgressMonitor.UNKNOWN), 1000);
    Catalog catalog = CatalogJsonSerializer.load(catalogStream);

    graphProducer.produceGraph(cancel, catalog, catalogName, dotStream, root);
  }
View Full Code Here

    final SubMonitor ticker = SubMonitor.convert(monitor, 2000);
    CatalogDeltaGraphProducer graphProducer = injector.getInstance(CatalogDeltaGraphProducer.class);
    Catalog oldCatalog = CatalogJsonSerializer.load(oldCatalogStream);
    Catalog newCatalog = CatalogJsonSerializer.load(newCatalogStream);

    ICancel cancel = new ProgressMonitorCancelIndicator(ticker.newChild(IProgressMonitor.UNKNOWN), 1000);

    ByteArrayOutputStream2 out = new ByteArrayOutputStream2();

    graphProducer.produceGraph(cancel, catalogName, oldCatalog, oldRoot, newCatalog, newRoot, out);
    graphProducer.getSVGProducer().produceSVG(out.toInputStream(false), svgStream, false, //
View Full Code Here

  public void produceSVGGraph(String catalogName, InputStream catalogStream, OutputStream svgStream,
      IProgressMonitor monitor, IPath root) throws IOException {
    final SubMonitor ticker = SubMonitor.convert(monitor, 2000);
    CatalogGraphProducer graphProducer = injector.getInstance(CatalogGraphProducer.class);
    ICancel cancel = new ProgressMonitorCancelIndicator(ticker.newChild(IProgressMonitor.UNKNOWN), 1000);
    Catalog catalog = CatalogJsonSerializer.load(catalogStream);

    ByteArrayOutputStream2 out = new ByteArrayOutputStream2();
    graphProducer.produceGraph(cancel, catalog, catalogName, out, root);
    graphProducer.getSVGProducer().produceSVG(out.toInputStream(false), svgStream, false, //
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.graph.ProgressMonitorCancelIndicator

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.