de.laures.cewolf.util
Class Renderer

java.lang.Object
  extended by de.laures.cewolf.util.Renderer
All Implemented Interfaces:
WebConstants

public class Renderer
extends java.lang.Object
implements WebConstants

Renderer for ChartImageDefinitions.

Author:
glaures, tbardzil
See Also:
ChartImage

Field Summary
 
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
 
Method Summary
static org.jfree.chart.title.LegendTitle getLegend(org.jfree.chart.JFreeChart chart)
           
static void removeLegend(org.jfree.chart.JFreeChart chart)
           
static RenderedImage render(ChartImage cd, java.lang.Object chart)
          Renders a chart image
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

render

public static RenderedImage render(ChartImage cd,
                                   java.lang.Object chart)
                            throws CewolfException
Renders a chart image

Parameters:
cd - the chart to render
Returns:
the rendered image
Throws:
CewolfException

getLegend

public static org.jfree.chart.title.LegendTitle getLegend(org.jfree.chart.JFreeChart chart)

removeLegend

public static void removeLegend(org.jfree.chart.JFreeChart chart)


cewolf tag library - web charts with JFreeChart