Package hudson.model
Class MultiStageTimeSeries.TrendChart
- java.lang.Object
-
- hudson.model.MultiStageTimeSeries.TrendChart
-
- All Implemented Interfaces:
org.kohsuke.stapler.HttpResponse
- Enclosing class:
- MultiStageTimeSeries
public static class MultiStageTimeSeries.TrendChart extends Object implements org.kohsuke.stapler.HttpResponse
Represents the trend chart that consists of severalMultiStageTimeSeries
.This object is renderable as HTTP response.
-
-
Field Summary
Fields Modifier and Type Field Description org.jfree.data.category.DefaultCategoryDataset
dataset
List<MultiStageTimeSeries>
series
MultiStageTimeSeries.TimeScale
timeScale
-
Constructor Summary
Constructors Constructor Description TrendChart(MultiStageTimeSeries.TimeScale timeScale, MultiStageTimeSeries... series)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.jfree.chart.axis.CategoryAxis
configureDomainAxis(org.jfree.chart.plot.CategoryPlot plot)
protected void
configurePlot(org.jfree.chart.plot.CategoryPlot plot)
protected void
configureRangeAxis(org.jfree.chart.axis.NumberAxis rangeAxis)
protected void
configureRenderer(org.jfree.chart.renderer.category.LineAndShapeRenderer renderer)
org.jfree.chart.JFreeChart
createChart()
Draws a chart intoJFreeChart
.protected org.jfree.data.category.DefaultCategoryDataset
createDataset()
Creates aDefaultCategoryDataset
for rendering a graph from a set ofMultiStageTimeSeries
.protected void
crop(org.jfree.chart.plot.CategoryPlot plot)
void
generateResponse(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, Object node)
Renders this object as an image.
-
-
-
Field Detail
-
timeScale
public final MultiStageTimeSeries.TimeScale timeScale
-
series
public final List<MultiStageTimeSeries> series
-
dataset
public final org.jfree.data.category.DefaultCategoryDataset dataset
-
-
Constructor Detail
-
TrendChart
public TrendChart(MultiStageTimeSeries.TimeScale timeScale, MultiStageTimeSeries... series)
-
-
Method Detail
-
createDataset
protected org.jfree.data.category.DefaultCategoryDataset createDataset()
Creates aDefaultCategoryDataset
for rendering a graph from a set ofMultiStageTimeSeries
.
-
createChart
public org.jfree.chart.JFreeChart createChart()
Draws a chart intoJFreeChart
.
-
configureRangeAxis
protected void configureRangeAxis(org.jfree.chart.axis.NumberAxis rangeAxis)
-
crop
protected void crop(org.jfree.chart.plot.CategoryPlot plot)
-
configureDomainAxis
protected org.jfree.chart.axis.CategoryAxis configureDomainAxis(org.jfree.chart.plot.CategoryPlot plot)
-
configureRenderer
protected void configureRenderer(org.jfree.chart.renderer.category.LineAndShapeRenderer renderer)
-
configurePlot
protected void configurePlot(org.jfree.chart.plot.CategoryPlot plot)
-
generateResponse
public void generateResponse(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, Object node) throws IOException, javax.servlet.ServletException
Renders this object as an image.- Specified by:
generateResponse
in interfaceorg.kohsuke.stapler.HttpResponse
- Throws:
IOException
javax.servlet.ServletException
-
-