Search in sources :

Example 1 with SVGIOHandler

use of yext.svg.io.SVGIOHandler in project binnavi by google.

the class GraphExporters method exportAllAsSVG.

@SuppressWarnings("unchecked")
public static boolean exportAllAsSVG(final AbstractZyGraph zygraph, final String filename) throws IOException {
    Graph2DView view = zygraph.getView();
    final SVGIOHandler svg = new SVGIOHandler();
    exportGraphToImageFileFormat(view.getGraph2D(), svg, filename, svg.createDefaultGraph2DView(view.getGraph2D()));
    return true;
}
Also used : Graph2DView(y.view.Graph2DView) SVGIOHandler(yext.svg.io.SVGIOHandler)

Example 2 with SVGIOHandler

use of yext.svg.io.SVGIOHandler in project binnavi by google.

the class GraphExporters method exportPartAsSVG.

@SuppressWarnings("unchecked")
public static void exportPartAsSVG(final AbstractZyGraph zygraph, final String filename) throws IOException {
    Graph2DView view = zygraph.getView();
    final SVGIOHandler svg = new SVGIOHandler();
    exportGraphPartToImageFileFormat(view.getGraph2D(), svg, filename);
}
Also used : Graph2DView(y.view.Graph2DView) SVGIOHandler(yext.svg.io.SVGIOHandler)

Aggregations

Graph2DView (y.view.Graph2DView)2 SVGIOHandler (yext.svg.io.SVGIOHandler)2