Skip to content

Commit

Permalink
add builtIn rasterizer to read me
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Niederhauser <ghuder5@gmx.ch>
  • Loading branch information
nidi3 committed Aug 3, 2019
1 parent 4d806c4 commit 5a9af9d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Binary file modified graphviz-java/example/ex5p.pdf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,7 @@ void builtInRasterizer() throws IOException {
final Graphviz g = Graphviz.fromGraph(graph().with(node("a").link("b")));
g.basedir(new File("example")).rasterize(Rasterizer.builtIn("pdf")).toFile(new File("target/builtIn"));
assertTrue(out.exists());
end();
init();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ void ex4() throws IOException {
}

@Test
@DisabledIfEnvironmentVariable(named = "CI", matches = ".*")
void ex5() throws IOException {
//## config
Graphviz.useEngine(new GraphvizCmdLineEngine()); // Rasterizer.builtIn() works only with CmdLineEngine
Expand All @@ -159,6 +160,8 @@ void ex5() throws IOException {
String json = viz.engine(Engine.NEATO).render(Format.JSON).toString();
BufferedImage image = viz.render(Format.PNG).toImage();
//## end
end();
init();
}

@Test
Expand Down

0 comments on commit 5a9af9d

Please sign in to comment.