refactored packages
[javainspect.git] / src / main / java / eu / svjatoslav / inspector / java / structure / example / RenderJavaInspect.java
1 /*
2  * JavaInspect - Utility to visualize java software
3  * Copyright (C) 2013, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
4  * 
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of version 2 of the GNU General Public License
7  * as published by the Free Software Foundation.
8  */
9
10 package eu.svjatoslav.inspector.java.structure.example;
11
12 import java.io.FileNotFoundException;
13
14 import eu.svjatoslav.inspector.java.structure.ClassGraph;
15 import eu.svjatoslav.inspector.java.structure.Utils;
16
17 public class RenderJavaInspect {
18
19         public static void main(final String[] args) throws FileNotFoundException {
20
21                 // Create graph
22                 final ClassGraph graph = new ClassGraph();
23
24                 // Add some object to the graph.
25                 graph.addObject(graph);
26
27                 // Add some class to the graph.
28                 graph.addClass(Utils.class);
29
30                 // Produce bitmap image titled "JavaInspect.png" to the user Desktop
31                 // directory.
32                 graph.generateGraph("JavaInspect", true);
33         }
34 }