X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Finspector%2Fjava%2Fstructure%2Fexample%2FRenderJavaInspect.java;fp=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Finspector%2Fjava%2Fstructure%2Fexample%2FRenderJavaInspect.java;h=f993e228ff7ededc037b42761c1e8c079f5c24f6;hb=d717e90f4c46e26f9f54ba5638aade6688527bf4;hp=0000000000000000000000000000000000000000;hpb=bdd5b19273b604c37c39c0158ae6700a770b73f4;p=javainspect.git diff --git a/src/main/java/eu/svjatoslav/inspector/java/structure/example/RenderJavaInspect.java b/src/main/java/eu/svjatoslav/inspector/java/structure/example/RenderJavaInspect.java new file mode 100644 index 0000000..f993e22 --- /dev/null +++ b/src/main/java/eu/svjatoslav/inspector/java/structure/example/RenderJavaInspect.java @@ -0,0 +1,34 @@ +/* + * JavaInspect - Utility to visualize java software + * Copyright (C) 2013, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of version 2 of the GNU General Public License + * as published by the Free Software Foundation. + */ + +package eu.svjatoslav.inspector.java.structure.example; + +import java.io.FileNotFoundException; + +import eu.svjatoslav.inspector.java.structure.ClassGraph; +import eu.svjatoslav.inspector.java.structure.Utils; + +public class RenderJavaInspect { + + public static void main(final String[] args) throws FileNotFoundException { + + // Create graph + final ClassGraph graph = new ClassGraph(); + + // Add some object to the graph. + graph.addObject(graph); + + // Add some class to the graph. + graph.addClass(Utils.class); + + // Produce bitmap image titled "JavaInspect.png" to the user Desktop + // directory. + graph.generateGraph("JavaInspect", true); + } +}