hudson.plugins.pmd.util
Class ChartRenderer

java.lang.Object
  extended by hudson.plugins.pmd.util.ChartRenderer

public final class ChartRenderer
extends java.lang.Object

Renders various charts and attaches the graph to the stapler response.

Author:
Ulli Hafner

Method Summary
static void renderPriorititesChart(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response, AnnotationProvider detailObject, int upperBound)
          Creates a priority distribution graph for the specified annotation provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

renderPriorititesChart

public static void renderPriorititesChart(org.kohsuke.stapler.StaplerRequest request,
                                          org.kohsuke.stapler.StaplerResponse response,
                                          AnnotationProvider detailObject,
                                          int upperBound)
                                   throws java.io.IOException
Creates a priority distribution graph for the specified annotation provider. The graph displays the distribution of warnings by priority as a horizontal bar (in different colors).

Parameters:
request - Stapler request
response - Stapler response
detailObject - the detail object to compute the graph for
upperBound - the upper bound of all tasks
Throws:
java.io.IOException - in case of an error


Copyright © 2008. All Rights Reserved.