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

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.TimeSeriesChart
Direct Known Subclasses:
TimeSeriesUnkownFailuresChart

public class TimeSeriesChart
extends BFAGraph

Bar chart displaying the number of different failure causes for a project.

Author:
Fredrik Persson <fredrik6.persson@sonymobile.com>

Field Summary
protected  int intervalSize
          Time interval size, should be set to Calendar.HOUR_OF_DAY, Calendar.DATE or Calendar.MONTH.
 
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
TimeSeriesChart(long timestamp, int defaultW, int defaultH, hudson.model.AbstractProject project, GraphFilterBuilder filter, int intervalSize, boolean groupByCategories, String graphTitle)
          Default constructor.
 
Method Summary
protected  org.jfree.chart.JFreeChart createGraph()
           
protected  Calendar getLowerGraphBound()
          Gets lower graph bound (minimum x-value), which depends on the intervalSize.
 
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
 

Field Detail

intervalSize

protected int intervalSize
Time interval size, should be set to Calendar.HOUR_OF_DAY, Calendar.DATE or Calendar.MONTH.

Constructor Detail

TimeSeriesChart

public TimeSeriesChart(long timestamp,
                       int defaultW,
                       int defaultH,
                       hudson.model.AbstractProject project,
                       GraphFilterBuilder filter,
                       int intervalSize,
                       boolean groupByCategories,
                       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
intervalSize - the interval sizes in which the data is grouped
groupByCategories - set to true in order to group failure causes by their categories
graphTitle - The title of the graph
Method Detail

createGraph

protected org.jfree.chart.JFreeChart createGraph()
Specified by:
createGraph in class hudson.util.Graph

getLowerGraphBound

protected Calendar getLowerGraphBound()
Gets lower graph bound (minimum x-value), which depends on the intervalSize.

Returns:
lower graph bound


Copyright © 2004-2014. All Rights Reserved.