|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.util.Graph
com.sonyericsson.jenkins.plugins.bfa.graphs.BFAGraph
com.sonyericsson.jenkins.plugins.bfa.graphs.StackedBarChart
public abstract class StackedBarChart
Bar chart displaying failure causes. Since it's a stacked bar chart, different failure causes for the same x-value will get stacked in different colors on top of each other.
Field Summary | |
---|---|
protected static String |
NO_FAILURE
String used for creating "empty" x-values without y-values (if there are no failure causes). |
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 | |
---|---|
StackedBarChart(long timestamp,
int defaultW,
int defaultH,
hudson.model.AbstractProject project,
GraphFilterBuilder filter,
String graphTitle)
Default constructor. |
Method Summary | |
---|---|
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. |
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 |
---|
protected static final String NO_FAILURE
Constructor Detail |
---|
public StackedBarChart(long timestamp, int defaultW, int defaultH, hudson.model.AbstractProject 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 graphMethod Detail |
---|
protected org.jfree.chart.JFreeChart createGraph()
createGraph
in class hudson.util.Graph
protected abstract org.jfree.data.category.DefaultCategoryDataset createDataset()
protected abstract String getTitle()
protected abstract String getYAxisTitle()
protected abstract String getXAxisTitle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |