/** * Creates a new filter using the given parameters. * * @param configuration * The configuration to use. * @param projectContext * The project context to use. */ public ComponentDependencyGraphAssemblyFilter(final Configuration configuration, final IProjectContext projectContext) { super(configuration, projectContext, new ComponentAssemblyDependencyGraph(AssemblyRepository.ROOT_ASSEMBLY_COMPONENT)); }
@Override protected String formatDependencyGraph(final ComponentAssemblyDependencyGraph graph, final boolean includeWeights, final boolean useShortLabels, final boolean plotLoops) { final StringBuilder builder = new StringBuilder(); this.appendGraphHeader(builder); graph.traverseWithVerticesFirst(new FormatterVisitor(builder, includeWeights, plotLoops, useShortLabels)); this.appendGraphFooter(builder); return builder.toString(); }