public abstract class BFAGraph extends Graph
Modifier and Type | Field and Description |
---|---|
protected GraphFilterBuilder |
filter
The data filter used for this graph.
|
protected static String |
GRAPH_OTHERS
The name of the cause/category of all non-displayed elements.
|
protected static String |
GRAPH_UNCATEGORIZED
Name for the category for failures without category.
|
protected static String |
GRAPH_UNKNOWN
Name for the failures without a corresponding failure cause.
|
protected String |
graphTitle
The title of the graph.
|
protected static int |
MAX_GRAPH_ELEMENTS
Max number of causes or categories to show in graphs.
|
static int |
MAX_YEARS_FOR_TIME_GRAPH
Max number of years to display in time graphs.
|
protected Job |
project
The project that this graph is plotting values for.
|
Modifier | Constructor and Description |
---|---|
protected |
BFAGraph(long timestamp,
int defaultW,
int defaultH,
Job project,
GraphFilterBuilder filter,
String graphTitle)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static List<Integer> |
getBuildNumbers(Job project)
Gets a list of build numbers that exist for the argument project.
|
createGraph, doMap, doPng
protected Job project
protected GraphFilterBuilder filter
protected String graphTitle
protected static final int MAX_GRAPH_ELEMENTS
protected static final String GRAPH_OTHERS
protected static final String GRAPH_UNCATEGORIZED
protected static final String GRAPH_UNKNOWN
public static final int MAX_YEARS_FOR_TIME_GRAPH
protected BFAGraph(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 graph, set to null for non-project
graphsfilter
- the filter used when fetching data for this graphgraphTitle
- The title of the graphCopyright © 2016–2019. All rights reserved.