/*
* JavaInspect - Utility to visualize java software
- * Copyright (C) 2013-2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2013-2020, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 3 of the GNU Lesser General Public License
public class RenderJavaInspect {
- private static void fullProjectExample() {
- // Create graph
- final ClassGraph graph = new ClassGraph();
-
- // Recursively scan current directory for Java source code and attempt
- // to detect class names from there to be added to the graph.
- graph.addProject(".");
-
- // do not show single classes with no relationships on the graph
- graph.hideOrphanedClasses();
-
- // Produce SVG image titled "JavaInspect full project.png" to the
- // user Desktop directory.
- graph.generateGraph("JavaInspect full project");
- }
-
+ /**
+ * Running this method via IDE will produce 2 files in project root directory:
+ * JavaInspect.svg (JavaInspect utility visualizes itself) and
+ * JavaInspect.dot (GraphViz dot file, for reference).
+ */
private static void handpickClassesExample() {
/*
* This example demonstrates generating of class graph from hand picked
public static void main(final String[] args) {
handpickClassesExample();
-
- fullProjectExample();
-
}
}