Package hudson.util
Class Graph
java.lang.Object
hudson.util.Graph
A JFreeChart-generated graph that's bound to UI.
This object exposes two URLs:
- /png
- PNG image of a graph
- /map
- Clickable map
- Since:
- 1.320
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.jfree.chart.JFreeChart
Actually render a chart.void
doMap
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Renders a clickable map.void
doMap
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Deprecated.void
doPng
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Renders a graph.void
doPng
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Deprecated.static Dimension
safeDimension
(int width, int height, int defaultWidth, int defaultHeight)
-
Constructor Details
-
Graph
protected Graph(long timestamp, int defaultWidth, int defaultHeight) - Parameters:
timestamp
- Timestamp of this graph. Used for HTTP cache related headers. If the graph doesn't have any timestamp to tie it to, pass -1.
-
Graph
-
-
Method Details
-
createGraph
protected abstract org.jfree.chart.JFreeChart createGraph()Actually render a chart. -
safeDimension
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static Dimension safeDimension(int width, int height, int defaultWidth, int defaultHeight) -
doPng
public void doPng(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException Renders a graph.- Throws:
IOException
- Since:
- 2.475
-
doPng
@Deprecated @StaplerNotDispatchable public void doPng(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException Deprecated.- Throws:
IOException
-
doMap
public void doMap(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException Renders a clickable map.- Throws:
IOException
- Since:
- 2.475
-
doMap
@Deprecated @StaplerNotDispatchable public void doMap(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException Deprecated.- Throws:
IOException
-
doMap(StaplerRequest2, StaplerResponse2)