public abstract class Graph extends Object
This object exposes two URLs:
Modifier | Constructor and Description |
---|---|
protected |
Graph(Calendar timestamp,
int defaultW,
int defaultH) |
protected |
Graph(long timestamp,
int defaultW,
int defaultH) |
Modifier and Type | Method and Description |
---|---|
protected abstract org.jfree.chart.JFreeChart |
createGraph()
Actually render a chart.
|
void |
doMap(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Renders a clickable map.
|
void |
doPng(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Renders a graph.
|
static Dimension |
safeDimension(int width,
int height,
int defaultWidth,
int defaultHeight) |
protected Graph(long timestamp, int defaultW, int defaultH)
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.protected Graph(Calendar timestamp, int defaultW, int defaultH)
protected abstract org.jfree.chart.JFreeChart createGraph()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static Dimension safeDimension(int width, int height, int defaultWidth, int defaultHeight)
public void doPng(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException
IOException
public void doMap(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException
IOException
Copyright © 2004–2021. All rights reserved.