/** * Generate a .dot file which can be fed into GraphViz for layout and visualization of the class graph. Methods * and fields are shown, if method and field info have been enabled respectively, via * {@link io.github.lukehutch.fastclasspathscanner.FastClasspathScanner#enableMethodInfo()} and * {@link io.github.lukehutch.fastclasspathscanner.FastClasspathScanner#enableFieldInfo()}. Only public * methods/fields are shown, unless * {@link io.github.lukehutch.fastclasspathscanner.FastClasspathScanner#ignoreMethodVisibility()} and/or * {@link io.github.lukehutch.fastclasspathscanner.FastClasspathScanner#ignoreFieldVisibility()} has been * called. The size defaults to 10.5 x 8 inches. * * @return the GraphViz file contents. */ public String generateClassGraphDotFile() { return classGraphBuilder.generateClassGraphDotFile(/* sizeX = */ 10.5f, /* sizeY = */ 8f, /* showFields = */ true, /* showMethods = */ true); }
/** * Generate a .dot file which can be fed into GraphViz for layout and visualization of the class graph. Methods * and fields are shown, if method and field info have been enabled respectively, via * {@link io.github.lukehutch.fastclasspathscanner.FastClasspathScanner#enableMethodInfo()} and * {@link io.github.lukehutch.fastclasspathscanner.FastClasspathScanner#enableFieldInfo()}. Only public * methods/fields are shown, unless * {@link io.github.lukehutch.fastclasspathscanner.FastClasspathScanner#ignoreMethodVisibility()} and/or * {@link io.github.lukehutch.fastclasspathscanner.FastClasspathScanner#ignoreFieldVisibility()} has been * called. The sizeX and sizeY parameters are the image output size to use (in inches) when GraphViz is asked to * render the .dot file. * * @param sizeX * The GraphViz layout width in inches. * @param sizeY * The GraphViz layout width in inches. * @return the GraphViz file contents. */ public String generateClassGraphDotFile(final float sizeX, final float sizeY) { return classGraphBuilder.generateClassGraphDotFile(sizeX, sizeY, /* showFields = */ true, /* showMethods = */ true); }
return classGraphBuilder.generateClassGraphDotFile(sizeX, sizeY, showFields, showMethods);