public class GraphRenderer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
RENDERED_IMAGE_MIME
appropriate Content-Type HTTP header value for graph image content
produced by render(OutputStream,Graph)
|
Constructor and Description |
---|
GraphRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
render(OutputStream target,
Graph graph)
Send a PNG format byte stream for the argument Graph to the provided
OutputStream
|
static String |
renderHTML(Graph graph,
String mapName,
String imgUrl,
String[] targets,
String[] titles)
Create both an HTML AREA map and an HTML IMG for a graph, using provided
href targets, and titles within the AREA map.
|
public static final String RENDERED_IMAGE_MIME
public static String renderHTML(Graph graph, String mapName, String imgUrl, String[] targets, String[] titles)
graph
- Graph to drawmapName
- name of HTML AREA mapimgUrl
- URL to rendered Graph, see GraphEncoder.encode()targets
- URL href targets for the years in the Graphtitles
- titles for the years in the graph.public void render(OutputStream target, Graph graph) throws IOException
target
- OutputStream to write PNG format bytesgraph
- Graph to send to the targetIOException
- for usual reasons.Copyright © 2005–2015 IIPC. All rights reserved.