| |
|
| java.lang.Object com.opensymphony.webwork.dispatcher.ChartResult
ChartResult | public class ChartResult implements Result(Code) | | A custom Result type for chart data. Built on top of
JFreeChart. When executed
this Result will write the given chart as a PNG to the servlet output stream.
author: Bernard Choi |
Method Summary | |
public void | execute(ActionInvocation invocation) Executes the result. | public void | setChart(JFreeChart chart) Sets the JFreeChart to use. | public void | setHeight(int height) Sets the chart height. | public void | setWidth(int width) Sets the chart width. |
chartSet | boolean chartSet(Code) | | |
execute | public void execute(ActionInvocation invocation) throws Exception(Code) | | Executes the result. Writes the given chart as a PNG to the servlet output stream.
Parameters: invocation - an encapsulation of the action execution state. throws: Exception - if an error occurs when creating or writing the chart to the servlet output stream. |
setChart | public void setChart(JFreeChart chart)(Code) | | Sets the JFreeChart to use.
Parameters: chart - a JFreeChart object. |
setHeight | public void setHeight(int height)(Code) | | Sets the chart height.
Parameters: height - the height of the chart in pixels. |
setWidth | public void setWidth(int width)(Code) | | Sets the chart width.
Parameters: width - the width of the chart in pixels. |
|
|
|