X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Feu%2Fsvjatoslav%2Finspector%2Fjava%2Fstructure%2Fexample%2FRenderJavaInspect.java;h=181ac099d20dfbfec8d91a02c787f7a259817a1d;hb=c508bf97e017675b49df989b7f5a64cbd31d9aa3;hp=2bfd560d56b1890a476ee16836a137afc94f7efa;hpb=300fb5791f0b79e43cfd2cd589c3ee7f35ac0c1c;p=javainspect.git diff --git a/src/test/java/eu/svjatoslav/inspector/java/structure/example/RenderJavaInspect.java b/src/test/java/eu/svjatoslav/inspector/java/structure/example/RenderJavaInspect.java index 2bfd560..181ac09 100755 --- a/src/test/java/eu/svjatoslav/inspector/java/structure/example/RenderJavaInspect.java +++ b/src/test/java/eu/svjatoslav/inspector/java/structure/example/RenderJavaInspect.java @@ -37,25 +37,22 @@ public class RenderJavaInspect { private static void handpickClassesExample() { /* * This example demonstrates generating of class graph from hand picked - * classes. + * classes and visualizing GraphViz itself. */ // Create graph final ClassGraph graph = new ClassGraph(); - // While classes and objects can be immediately passed to ClassGraph - // constructor as arguments, it is also possible to add then one by one - // as in the following example. - - // Add some object to the graph. + // Add some random object to the graph. GraphViz will detect Class from + // the object. graph.add(graph); - // Add some class to the graph. + // Add some random class to the graph. graph.add(Utils.class); // Produce bitmap image titled "JavaInspect.png" to the user Desktop // directory and keep intermediary GraphViz DOT file for reference. - graph.generateGraph("JavaInspect", true); + graph.setKeepDotFile(true).generateGraph("JavaInspect"); } public static void main(final String[] args) throws FileNotFoundException {