com.sonyericsson.jenkins.plugins.bfa.graphs
Class BuildNbrStackedBarChart

java.lang.Object
  extended by hudson.util.Graph
      extended by com.sonyericsson.jenkins.plugins.bfa.graphs.BFAGraph
          extended by com.sonyericsson.jenkins.plugins.bfa.graphs.StackedBarChart
              extended by com.sonyericsson.jenkins.plugins.bfa.graphs.BuildNbrStackedBarChart

public class BuildNbrStackedBarChart
extends StackedBarChart

Stacked bar chart displaying the number of different failure causes for every build number.

Author:
Fredrik Persson <fredrik6.persson@sonymobile.com>, Christoffer Lauri <christoffer.lauri@sonymobile.com>

Field Summary
 
Fields inherited from class com.sonyericsson.jenkins.plugins.bfa.graphs.StackedBarChart
NO_FAILURE
 
Fields inherited from class com.sonyericsson.jenkins.plugins.bfa.graphs.BFAGraph
filter, GRAPH_OTHERS, GRAPH_UNCATEGORIZED, GRAPH_UNKNOWN, graphTitle, MAX_GRAPH_ELEMENTS, MAX_YEARS_FOR_TIME_GRAPH, project
 
Constructor Summary
protected BuildNbrStackedBarChart(long timestamp, int defaultW, int defaultH, hudson.model.AbstractProject project, GraphFilterBuilder filter, int nbrOfBuildsToShow, String graphTitle)
          Default constructor.
 
Method Summary
protected  org.jfree.data.category.DefaultCategoryDataset createDataset()
          Creates the dataset needed for this graph.
protected  String getTitle()
          Getter for the graph title.
protected  String getXAxisTitle()
          Getter for the X-axis title.
protected  String getYAxisTitle()
          Getter for the Y-axis title.
 
Methods inherited from class com.sonyericsson.jenkins.plugins.bfa.graphs.StackedBarChart
createGraph
 
Methods inherited from class com.sonyericsson.jenkins.plugins.bfa.graphs.BFAGraph
getBuildNumbers
 
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
 

Constructor Detail

BuildNbrStackedBarChart

protected BuildNbrStackedBarChart(long timestamp,
                                  int defaultW,
                                  int defaultH,
                                  hudson.model.AbstractProject project,
                                  GraphFilterBuilder filter,
                                  int nbrOfBuildsToShow,
                                  String graphTitle)
Default constructor.

Parameters:
timestamp - timestamp for this project graph, used for HTTP caching. Set to -1 if timestamp is not needed
defaultW - width of the graph in pixels
defaultH - height of the graph in pixels
project - the parent project of this graph, set to null for non-project graphs
filter - the filter used when fetching data for this graph
nbrOfBuildsToShow - maximum number of builds to show
graphTitle - The title of the graph
Method Detail

createDataset

protected org.jfree.data.category.DefaultCategoryDataset createDataset()
Creates the dataset needed for this graph.

Specified by:
createDataset in class StackedBarChart
Returns:
dataset

getTitle

protected String getTitle()
Description copied from class: StackedBarChart
Getter for the graph title.

Specified by:
getTitle in class StackedBarChart
Returns:
graph title

getYAxisTitle

protected String getYAxisTitle()
Description copied from class: StackedBarChart
Getter for the Y-axis title.

Specified by:
getYAxisTitle in class StackedBarChart
Returns:
title for the Y-axis

getXAxisTitle

protected String getXAxisTitle()
Description copied from class: StackedBarChart
Getter for the X-axis title.

Specified by:
getXAxisTitle in class StackedBarChart
Returns:
title for the X-axis


Copyright © 2004-2014. All Rights Reserved.