public void renderSigma(File output) throws FileNotFoundException, IOException { LOG.debug("Writing Sigmajs graph to: "+output.getAbsolutePath()); render(new SigmaJSHtmlWriter(graph), output); }
public void renderDagreD3(File output) throws FileNotFoundException, IOException { LOG.debug("Writing DagreD3 graph to: "+output.getAbsolutePath()); render(new DagreD3JSHtmlWriter(graph), output); }
public void renderVizjs(File output) throws FileNotFoundException, IOException { LOG.debug("Writing Vizjs graph to: "+output.getAbsolutePath()); render(new VizJSHtmlWriter(graph), output); }
public void writeGraph(final OutputStream os) throws IOException { // read in the html template resource. InputStream is = this.getClass().getClassLoader().getResourceAsStream("vizjs/HtmlTemplate.html"); String result; { ByteArrayOutputStream baos = new ByteArrayOutputStream(); writer.writeGraph(baos); result = baos.toString(); } if(LOG.isDebugEnabled()) { LOG.debug("DOT: "+result); } // read the document. Document document; try { document = $(is).document(); // append in the gexf. $(document).find("#dot-source").append(result); writeDocument(document, os); } catch (SAXException e) { throw new IOException("Exception loading document.", e); } }
public void writeGraph(final OutputStream os) throws IOException { // read in the html template resource. InputStream is = this.getClass().getClassLoader().getResourceAsStream("dagred3/HtmlTemplate.html"); String result; { ByteArrayOutputStream baos = new ByteArrayOutputStream(); writer.writeGraph(baos); result = baos.toString(); } if(LOG.isDebugEnabled()) { LOG.debug("Graphlib: "+result); } // read the document. Document document; try { document = $(is).document(); // append in the gexf. $(document).find("#graphlib-source").append(result); writeDocument(document, os); } catch (SAXException e) { throw new IOException("Exception loading document.", e); } }
public void writeGraph(final OutputStream os) throws IOException { // read in the html template resource. InputStream is = this.getClass().getClassLoader().getResourceAsStream("sigmajs/HtmlTemplate.html"); String result = null; { ByteArrayOutputStream baos = new ByteArrayOutputStream(); gexfWriter.writeGraph(baos); result = baos.toString(); } if(LOG.isDebugEnabled()) { LOG.debug("GEXF: "+result); } // read the document. Document document; try { document = $(is).document(); // append in the gexf. $(document).find("#gexf-source").append(result); writeDocument(document, os); } catch (SAXException e) { throw new IOException("Exception loading document.", e); } }
public void renderSigma(File output) throws FileNotFoundException, IOException { LOG.debug("Writing Sigmajs graph to: "+output.getAbsolutePath()); render(new SigmaJSHtmlWriter(graph), output); }
public void renderDagreD3(File output) throws FileNotFoundException, IOException { LOG.debug("Writing DagreD3 graph to: "+output.getAbsolutePath()); render(new DagreD3JSHtmlWriter(graph), output); }
public void renderVizjs(File output) throws FileNotFoundException, IOException { LOG.debug("Writing Vizjs graph to: "+output.getAbsolutePath()); render(new VizJSHtmlWriter(graph), output); }
public void writeGraph(final OutputStream os) throws IOException { // read in the html template resource. InputStream is = this.getClass().getClassLoader().getResourceAsStream("vizjs/HtmlTemplate.html"); String result; { ByteArrayOutputStream baos = new ByteArrayOutputStream(); writer.writeGraph(baos); result = baos.toString(); } if(LOG.isDebugEnabled()) { LOG.debug("DOT: "+result); } // read the document. Document document; try { document = $(is).document(); // append in the gexf. $(document).find("#dot-source").append(result); writeDocument(document, os); } catch (SAXException e) { throw new IOException("Exception loading document.", e); } }
public void writeGraph(final OutputStream os) throws IOException { // read in the html template resource. InputStream is = this.getClass().getClassLoader().getResourceAsStream("dagred3/HtmlTemplate.html"); String result; { ByteArrayOutputStream baos = new ByteArrayOutputStream(); writer.writeGraph(baos); result = baos.toString(); } if(LOG.isDebugEnabled()) { LOG.debug("Graphlib: "+result); } // read the document. Document document; try { document = $(is).document(); // append in the gexf. $(document).find("#graphlib-source").append(result); writeDocument(document, os); } catch (SAXException e) { throw new IOException("Exception loading document.", e); } }
public void writeGraph(final OutputStream os) throws IOException { // read in the html template resource. InputStream is = this.getClass().getClassLoader().getResourceAsStream("sigmajs/HtmlTemplate.html"); String result = null; { ByteArrayOutputStream baos = new ByteArrayOutputStream(); gexfWriter.writeGraph(baos); result = baos.toString(); } if(LOG.isDebugEnabled()) { LOG.debug("GEXF: "+result); } // read the document. Document document; try { document = $(is).document(); // append in the gexf. $(document).find("#gexf-source").append(result); writeDocument(document, os); } catch (SAXException e) { throw new IOException("Exception loading document.", e); } }