|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.analysis.graph.BuildResultGraph
public abstract class BuildResultGraph
Base class for build results graphs.
| Constructor Summary | |
|---|---|
BuildResultGraph()
|
|
| Method Summary | |
|---|---|
static long |
computeDayDelta(Calendar first,
BuildResult second)
Computes the delta between two dates in days. |
static long |
computeDayDelta(Calendar first,
Calendar second)
Computes the delta between two dates in days. |
abstract org.jfree.chart.JFreeChart |
create(GraphConfiguration configuration,
ResultAction<? extends BuildResult> resultAction,
String pluginName)
Creates a PNG image trend graph with clickable map. |
abstract org.jfree.chart.JFreeChart |
createAggregation(GraphConfiguration configuration,
Collection<ResultAction<? extends BuildResult>> resultActions,
String pluginName)
Creates a PNG image trend graph with clickable map. |
org.jfree.chart.JFreeChart |
createXYChart(org.jfree.data.xy.XYDataset dataset)
Creates a XY graph from the specified data set. |
String |
getExampleImage()
Returns the URL to an image that shows an example of the graph. |
hudson.util.Graph |
getGraph(long timestamp,
GraphConfiguration configuration,
String pluginName,
Collection<ResultAction<?>> actions)
Returns the new graph object that wraps the actual JFreeChart
into a PNG image or map. |
hudson.util.Graph |
getGraph(long timestamp,
GraphConfiguration configuration,
String pluginName,
ResultAction<?> lastAction)
Returns the new graph object that wraps the actual JFreeChart
into a PNG image or map. |
abstract String |
getId()
Returns the ID of this graph. |
abstract String |
getLabel()
Returns a human readable label describing this graph. |
protected String |
getPlugin()
Returns the plug-in that owns this graph and provides an example image. |
String |
getRootUrl()
Returns the root URL. |
protected boolean |
isBuildTooOld(GraphConfiguration configuration,
BuildResult current)
Returns whether the specified build result is too old in order to be considered for the trend graph. |
boolean |
isDeactivated()
Returns whether the graph is deactivated. |
boolean |
isSelectable()
Returns whether this graph is selectable. |
boolean |
isVisible()
Returns whether this graph is visible. |
protected void |
setPlotProperties(org.jfree.chart.plot.Plot plot)
Sets properties common to all plots of this plug-in. |
void |
setRootUrl(String rootUrl)
Sets the root URL to the specified value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BuildResultGraph()
| Method Detail |
|---|
public boolean isSelectable()
true if this graph is selectable, false otherwisepublic abstract String getId()
public abstract String getLabel()
public String getExampleImage()
protected String getPlugin()
public boolean isVisible()
true if this graph is visiblepublic void setRootUrl(String rootUrl)
rootUrl - the value to setpublic String getRootUrl()
public abstract org.jfree.chart.JFreeChart create(GraphConfiguration configuration,
ResultAction<? extends BuildResult> resultAction,
@CheckForNull
String pluginName)
configuration - the configuration parametersresultAction - the result action to start the graph computation frompluginName - the name of the plug-in (project action URL) to create links
to. If set to null then no links are created
public abstract org.jfree.chart.JFreeChart createAggregation(GraphConfiguration configuration,
Collection<ResultAction<? extends BuildResult>> resultActions,
String pluginName)
configuration - the configuration parametersresultActions - the result actions to start the graph computation frompluginName - the name of the plug-in
public static long computeDayDelta(Calendar first,
Calendar second)
first - the first datesecond - the second date
public static long computeDayDelta(Calendar first,
BuildResult second)
first - the first datesecond - the second date (given by the build result)
protected void setPlotProperties(org.jfree.chart.plot.Plot plot)
plot - the plot to set the properties forpublic org.jfree.chart.JFreeChart createXYChart(org.jfree.data.xy.XYDataset dataset)
dataset - the values to display
public hudson.util.Graph getGraph(long timestamp,
GraphConfiguration configuration,
String pluginName,
ResultAction<?> lastAction)
JFreeChart
into a PNG image or map.
timestamp - the last build timeconfiguration - the graph configurationpluginName - the name of the plug-inlastAction - the last valid action for this project
public hudson.util.Graph getGraph(long timestamp,
GraphConfiguration configuration,
String pluginName,
Collection<ResultAction<?>> actions)
JFreeChart
into a PNG image or map.
timestamp - the last build timeconfiguration - the graph configurationpluginName - the name of the plug-inactions - the actions to get the summary graph for
public boolean isDeactivated()
true if the graph is deactivated, false
otherwise
protected boolean isBuildTooOld(GraphConfiguration configuration,
BuildResult current)
configuration - the graph configurationcurrent - the current build
true if the build is too old
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||