|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.laures.cewolf.util.Renderer
public class Renderer
Renderer for ChartImageDefinitions.
ChartImage
Field Summary | |
---|---|
private static org.apache.commons.logging.Log |
log
|
Fields inherited from interface de.laures.cewolf.WebConstants |
---|
AMPERSAND, HEIGHT_PARAM, IMG_PARAM, MIME_JPEG, MIME_PNG, MIME_SVG, REMOVE_AFTER_RENDERING, SESSIONID_KEY, WIDTH_PARAM |
Constructor Summary | |
---|---|
private |
Renderer()
Creates a new instance of Renderer |
Method Summary | |
---|---|
static org.jfree.chart.title.LegendTitle |
getLegend(org.jfree.chart.JFreeChart chart)
|
private static void |
handleJPEG(java.io.ByteArrayOutputStream baos,
org.jfree.chart.JFreeChart chart,
int width,
int height,
org.jfree.chart.ChartRenderingInfo info)
Handles rendering a chart as a JPEG. |
private static void |
handlePNG(java.io.ByteArrayOutputStream baos,
org.jfree.chart.JFreeChart chart,
int width,
int height,
org.jfree.chart.ChartRenderingInfo info)
Handles rendering a chart as a PNG. |
private static void |
handleSVG(java.io.ByteArrayOutputStream baos,
org.jfree.chart.JFreeChart chart,
int width,
int height)
Handles rendering a chart as a SVG. |
static void |
removeLegend(org.jfree.chart.JFreeChart chart)
|
static RenderedImage |
render(ChartImage cd,
java.lang.Object chart)
Renders a chart image |
private static RenderedImage |
renderChart(ChartImage cd,
java.lang.Object chart)
Renders a chart |
private static RenderedImage |
renderLegend(ChartImage cd,
java.lang.Object c)
Renders a legend |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log log
Constructor Detail |
---|
private Renderer()
Method Detail |
---|
public static RenderedImage render(ChartImage cd, java.lang.Object chart) throws CewolfException
cd
- the chart to render
CewolfException
private static RenderedImage renderChart(ChartImage cd, java.lang.Object chart) throws CewolfException
cd
- the chart image to be rendered
CewolfException
private static void handlePNG(java.io.ByteArrayOutputStream baos, org.jfree.chart.JFreeChart chart, int width, int height, org.jfree.chart.ChartRenderingInfo info) throws java.io.IOException
baos
- chart
- width
- height
- info
-
java.io.IOException
private static void handleJPEG(java.io.ByteArrayOutputStream baos, org.jfree.chart.JFreeChart chart, int width, int height, org.jfree.chart.ChartRenderingInfo info) throws java.io.IOException
baos
- chart
- width
- height
- info
-
java.io.IOException
private static void handleSVG(java.io.ByteArrayOutputStream baos, org.jfree.chart.JFreeChart chart, int width, int height) throws java.io.IOException
baos
- chart
- width
- height
-
java.io.IOException
public static org.jfree.chart.title.LegendTitle getLegend(org.jfree.chart.JFreeChart chart)
public static void removeLegend(org.jfree.chart.JFreeChart chart)
private static RenderedImage renderLegend(ChartImage cd, java.lang.Object c) throws CewolfException
cd
- the chart iamge to be rendred
CewolfException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |