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 several
MultiStageTimeSeries
.
This object is renderable as HTTP response.
-
Field Summary
Modifier and TypeFieldDescriptionfinal org.jfree.data.category.DefaultCategoryDataset
final List<MultiStageTimeSeries>
-
Constructor Summary
ConstructorDescriptionTrendChart
(MultiStageTimeSeries.TimeScale timeScale, MultiStageTimeSeries... series) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
Draws a chart intoJFreeChart
.protected org.jfree.data.category.DefaultCategoryDataset
Creates aDefaultCategoryDataset
for rendering a graph from a set ofMultiStageTimeSeries
.protected void
crop
(org.jfree.chart.plot.CategoryPlot plot) void
generateResponse
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, Object node) Renders this object as an image.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.kohsuke.stapler.HttpResponse
generateResponse
-
Field Details
-
timeScale
-
series
-
dataset
public final org.jfree.data.category.DefaultCategoryDataset dataset
-
-
Constructor Details
-
TrendChart
-
-
Method Details
-
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.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, Object node) throws IOException, jakarta.servlet.ServletException Renders this object as an image.- Specified by:
generateResponse
in interfaceorg.kohsuke.stapler.HttpResponse
- Throws:
IOException
jakarta.servlet.ServletException
-