com.sonyericsson.jenkins.plugins.bfa.graphs
Class TimeSeriesChart
java.lang.Object
hudson.util.Graph
com.sonyericsson.jenkins.plugins.bfa.graphs.BFAGraph
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. |
Constructor Summary |
TimeSeriesChart(long timestamp,
int defaultW,
int defaultH,
hudson.model.AbstractProject project,
GraphFilterBuilder filter,
int intervalSize,
boolean groupByCategories,
String graphTitle)
Default constructor. |
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 |
intervalSize
protected int intervalSize
- Time interval size, should be set to Calendar.HOUR_OF_DAY, Calendar.DATE or
Calendar.MONTH.
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 pixelsdefaultH
- height of the graph in pixelsproject
- the parent project of this graph, set to null for non-project graphsfilter
- the filter used when fetching data for this graphintervalSize
- the interval sizes in which the data is groupedgroupByCategories
- set to true in order to group failure causes by their categoriesgraphTitle
- The title of the graph
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.