|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.webwork.dispatcher.ChartResult
public class ChartResult
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.
Constructor Summary | |
---|---|
ChartResult()
|
Method Summary | |
---|---|
void |
execute(ActionInvocation invocation)
Executes the result. |
void |
setChart(org.jfree.chart.JFreeChart chart)
Sets the JFreeChart to use. |
void |
setHeight(int height)
Sets the chart height. |
void |
setWidth(int width)
Sets the chart width. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChartResult()
Method Detail |
---|
public void setChart(org.jfree.chart.JFreeChart chart)
chart
- a JFreeChart object.public void setHeight(int height)
height
- the height of the chart in pixels.public void setWidth(int width)
width
- the width of the chart in pixels.public void execute(ActionInvocation invocation) throws Exception
execute
in interface Result
invocation
- an encapsulation of the action execution state.
Exception
- if an error occurs when creating or writing the chart to the servlet output stream.
|
WebWork Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |