Skip to content

physicsLoveJava/classviz

Repository files navigation

Classviz : A Tool for class dependencies visualization

maven repository

maven repository

<dependency>
    <groupId>com.github.physicslovejava</groupId>
    <artifactId>classviz</artifactId>
    <version>1.0.2</version>
</dependency>

Usage

We can generate class dependency graph via Classviz.

Classviz classviz = ClassvizGeneration.scan(pathToJavaFiles);
classviz.setFormat(Format.SVG);
classviz.exportToFile(new File(fileDestination));

With the jquery.graphviz.svg, we can track class dependencies and its dependents. The tracking classes are highlight.

Demo site

Inspiring Projects

  1. https://github.com/nidi3/graphviz-java
  2. https://github.com/javaparser/javaparser
  3. https://github.com/plantuml/plantuml
  4. https://github.com/mountainstorm/jquery.graphviz.svg