public abstract class StackedBarChart extends BFAGraph
Modifier and Type | Field and Description |
---|---|
protected static String |
NO_FAILURE
String used for creating "empty" x-values without y-values (if there are no failure causes).
|
filter, GRAPH_OTHERS, GRAPH_UNCATEGORIZED, GRAPH_UNKNOWN, graphTitle, MAX_GRAPH_ELEMENTS, MAX_YEARS_FOR_TIME_GRAPH, project
Constructor and Description |
---|
StackedBarChart(long timestamp,
int defaultW,
int defaultH,
Job project,
GraphFilterBuilder filter,
String graphTitle)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract org.jfree.data.category.DefaultCategoryDataset |
createDataset()
Creates the dataset used for plotting the graph.
|
protected org.jfree.chart.JFreeChart |
createGraph() |
protected abstract String |
getTitle()
Getter for the graph title.
|
protected abstract String |
getXAxisTitle()
Getter for the X-axis title.
|
protected abstract String |
getYAxisTitle()
Getter for the Y-axis title.
|
getBuildNumbers
protected static final String NO_FAILURE
public StackedBarChart(long timestamp, int defaultW, int defaultH, Job project, GraphFilterBuilder filter, String graphTitle)
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 graphfilter
- the filter used when fetching data for this graphgraphTitle
- The title of the graphprotected org.jfree.chart.JFreeChart createGraph()
createGraph
in class Graph
protected abstract org.jfree.data.category.DefaultCategoryDataset createDataset()
protected abstract String getTitle()
protected abstract String getYAxisTitle()
protected abstract String getXAxisTitle()
Copyright © 2016–2019. All rights reserved.