| Modifier and Type | Field and Description |
|---|---|
| private static final String | ANNOTATION_COLOR
The color for annotations. |
| private static final String | INTERFACE_COLOR
The color for interfaces. |
| private static final BitSet | IS_UNICODE_WHITESPACE
Which characters are Unicode whitespace. |
| private static final int | PARAM_WRAP_WIDTH
The wrap width for method parameters. |
| private static final String | STANDARD_CLASS_COLOR
The color for standard classes. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static String | Returns: the stringthe class info list classInfoList, final float the size X sizeX, final float the size Y sizeY, final boolean whether to show fields showFields, final boolean whether to show field type dependency edges showFieldTypeDependencyEdges, final boolean whether to show methods showMethods, final boolean whether to show method type dependency edges showMethodTypeDependencyEdges, final boolean whether to show annotations showAnnotations, final boolean whether to use simple names for classes useSimpleNames, final ScanSpec the scan spec scanSpec)Generates a .dot file which can be fed into GraphViz for layout and visualization of the class graph. |
| pack-priv static String | Returns: the GraphViz file contents.The list of nodes whose dependencies should be plotted in the graph. classInfoList, final float The GraphViz layout width in inches. sizeX, final float The GraphViz layout width in inches. sizeY, final boolean If true, include any dependency nodes in the graph that are not themselves in classInfoList. includeExternalClasses)Generate a .dot file which can be fed into GraphViz for layout and visualization of the class graph. |
| private static void | htmlEncode(final CharSequence
The string to escape to make HTML-safe. unsafeStr, final boolean If true, turn '\n' into a break element in the output. turnNewlineIntoBreak, final StringBuilder the buf buf)Encode HTML-unsafe characters as HTML entities. |
| private static void | htmlEncode(final CharSequence
The string to escape to make HTML-safe. unsafeStr, final StringBuilder the buf buf)Encode HTML-unsafe characters as HTML entities. |
| private static boolean | Returns: true if the character is Unicode whitespacethe character c)Checks if a character is Unicode whitespace. |
| private static void | labelClassNodeHTML(final ClassInfo
the class info ci, final String the shape to use shape, final String the box background color boxBgColor, final boolean whether to show fields showFields, final boolean whether to show methods showMethods, final boolean whether to use simple names for classes in type signatures useSimpleNames, final ScanSpec the scan spec scanSpec, final StringBuilder the buf buf)Produce HTML label for class node. |
| ANNOTATION_COLOR | back to summary |
|---|---|
| private static final String ANNOTATION_COLOR The color for annotations. | |
| INTERFACE_COLOR | back to summary |
|---|---|
| private static final String INTERFACE_COLOR The color for interfaces. | |
| IS_UNICODE_WHITESPACE | back to summary |
|---|---|
| private static final BitSet IS_UNICODE_WHITESPACE Which characters are Unicode whitespace. | |
| PARAM_WRAP_WIDTH | back to summary |
|---|---|
| private static final int PARAM_WRAP_WIDTH The wrap width for method parameters. | |
| STANDARD_CLASS_COLOR | back to summary |
|---|---|
| private static final String STANDARD_CLASS_COLOR The color for standard classes. | |
| GraphvizDotfileGenerator | back to summary |
|---|---|
| private GraphvizDotfileGenerator() Constructor. | |
| generateGraphVizDotFile | back to summary |
|---|---|
| pack-priv static String generateGraphVizDotFile(final ClassInfoList classInfoList, final float sizeX, final float sizeY, final boolean showFields, final boolean showFieldTypeDependencyEdges, final boolean showMethods, final boolean showMethodTypeDependencyEdges, final boolean showAnnotations, final boolean useSimpleNames, final ScanSpec scanSpec) Generates a .dot file which can be fed into GraphViz for layout and visualization of the class graph. The sizeX and sizeY parameters are the image output size to use (in inches) when GraphViz is asked to render the .dot file.
| |
| generateGraphVizDotFileFromInterClassDependencies | back to summary |
|---|---|
| pack-priv static String generateGraphVizDotFileFromInterClassDependencies(final ClassInfoList classInfoList, final float sizeX, final float sizeY, final boolean includeExternalClasses) Generate a .dot file which can be fed into GraphViz for layout and visualization of the class graph. The
returned graph shows inter-class dependencies only. The sizeX and sizeY parameters are the image output size
to use (in inches) when GraphViz is asked to render the .dot file. You must have called
| |
| htmlEncode | back to summary |
|---|---|
| private static void htmlEncode(final CharSequence unsafeStr, final boolean turnNewlineIntoBreak, final StringBuilder buf) Encode HTML-unsafe characters as HTML entities.
| |
| htmlEncode | back to summary |
|---|---|
| private static void htmlEncode(final CharSequence unsafeStr, final StringBuilder buf) Encode HTML-unsafe characters as HTML entities.
| |
| isUnicodeWhitespace | back to summary |
|---|---|
| private static boolean isUnicodeWhitespace(final char c) Checks if a character is Unicode whitespace.
| |
| labelClassNodeHTML | back to summary |
|---|---|
| private static void labelClassNodeHTML(final ClassInfo ci, final String shape, final String boxBgColor, final boolean showFields, final boolean showMethods, final boolean useSimpleNames, final ScanSpec scanSpec, final StringBuilder buf) Produce HTML label for class node.
| |