2 * JavaInspect - Utility to visualize java software
3 * Copyright (C) 2013, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
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.
10 package eu.svjatoslav.javainspect.example;
12 import java.io.FileNotFoundException;
14 import eu.svjatoslav.javainspect.structure.ClassGraph;
15 import eu.svjatoslav.javainspect.structure.Utils;
17 public class RenderJavaInspect {
19 public static void main(final String[] args) throws FileNotFoundException {
22 final ClassGraph graph = new ClassGraph();
24 // Add some object to the graph.
25 graph.addObject(graph);
27 // Add some class to the graph.
28 graph.addClass(Utils.class);
30 // Produce bitmap image titled "JavaInspect.png" to the user Desktop
32 graph.generateGraph("JavaInspect", true);