hudson.plugins.ccm
Class CCMGraph

java.lang.Object
  extended by hudson.util.Graph
      extended by hudson.plugins.ccm.CCMGraph

public class CCMGraph
extends hudson.util.Graph

CCM Graph object. It is set in a Stapler Response object to show the CCM trend graph to the user.

Since:
2.6
Author:
Bruno P. Kinoshita - http://www.kinoshita.eti.br

Field Summary
static int DEFAULT_CHART_HEIGHT
          Default chart height in pixels.
static int DEFAULT_CHART_WIDTH
          Default chart width in pixels.
 
Constructor Summary
CCMGraph(hudson.model.AbstractBuild<?,?> owner, org.jfree.data.category.CategoryDataset categoryDataset, java.lang.String yLabel, java.lang.String xLabel)
          Constructs a new styled trend graph for given dataset.
 
Method Summary
protected  org.jfree.chart.JFreeChart createGraph()
          Creates CCM trend graph.
 
Methods inherited from class hudson.util.Graph
doMap, doPng
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CHART_WIDTH

public static final int DEFAULT_CHART_WIDTH
Default chart width in pixels.

See Also:
Constant Field Values

DEFAULT_CHART_HEIGHT

public static final int DEFAULT_CHART_HEIGHT
Default chart height in pixels.

See Also:
Constant Field Values
Constructor Detail

CCMGraph

public CCMGraph(hudson.model.AbstractBuild<?,?> owner,
                org.jfree.data.category.CategoryDataset categoryDataset,
                java.lang.String yLabel,
                java.lang.String xLabel)
Constructs a new styled trend graph for given dataset.

Parameters:
owner - Build which the graph is associated to.
categoryDataset - Category data for graph.
yLabel - Y label name.
xLabel - X label name.
chartWidth - Chart width in pixels.
chartHeight - Chart height in pixels.
Method Detail

createGraph

protected org.jfree.chart.JFreeChart createGraph()
Creates CCM trend graph.

Specified by:
createGraph in class hudson.util.Graph
Returns:
the JFreeChart graph object.


Copyright © 2010-2011 the CCM plug-in team-2011. All Rights Reserved.