|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.covcomplplot.util.CustomGraph
public abstract class CustomGraph
Reimplementation of Graph class in Jenkins lib. lazyMap logic on which
Graph class is based is not properly working in IE. Related doMap()
method in the class is removed.
| Field Summary | |
|---|---|
protected int |
defaultH
|
protected int |
defaultW
|
protected org.jfree.chart.JFreeChart |
graph
|
protected long |
timestamp
|
| Constructor Summary | |
|---|---|
protected |
CustomGraph(Calendar timestamp,
int defaultW,
int defaultH)
Constructor |
protected |
CustomGraph(long timestamp,
int defaultW,
int defaultH)
Constructor |
| Method Summary | |
|---|---|
protected abstract org.jfree.chart.JFreeChart |
createGraph()
Prepare JFreeChart instance to render image |
void |
doPng(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Renders a graph. |
protected BufferedImage |
render(org.kohsuke.stapler.StaplerRequest req)
Actually render a chart. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final long timestamp
protected final int defaultW
protected final int defaultH
protected volatile org.jfree.chart.JFreeChart graph
| Constructor Detail |
|---|
protected CustomGraph(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.defaultW - default widthdefaultH - default height
protected CustomGraph(Calendar timestamp,
int defaultW,
int defaultH)
timestamp - Timestamp of this graph. Used for HTTP cache related headers.defaultW - default widthdefaultH - default height| Method Detail |
|---|
protected abstract org.jfree.chart.JFreeChart createGraph()
JFreeChart instance to render image
JFreeChart instanceprotected BufferedImage render(org.kohsuke.stapler.StaplerRequest req)
req - the StaplerRequest instance from which the width and
height attributes are extracted.
public void doPng(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
req - request from which the some attribute is extracted (width /
height)rsp - response to which the image is written.
IOException - occurs when there is IO problems
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||