|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.service.event.JFreeChartPNGOutputEvent
public final class JFreeChartPNGOutputEvent
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.torweg.pulse.service.event.Event |
|---|
Event.Disposition |
| Constructor Summary | |
|---|---|
JFreeChartPNGOutputEvent(org.jfree.chart.JFreeChart chart,
int width,
int height, CacheMode cMode)
Creates a new JFreeChartPNGOutputEvent for the given chart with
the given width and height for the PNG. |
|
| Method Summary | |
|---|---|
CacheMode |
getCacheMode()
returns the CacheMode. |
boolean |
isOutputEvent()
Indicates if this Event will write to the
OutputStream and so render the OutputStream
unwritable for future results. |
boolean |
isSingularEvent()
Indicates that the Event will only be added once to the
EventManager and block all other Events. |
boolean |
isStopEvent()
Indicates if the Invoker should proceed executing other
bundles or if it should terminate after executing this Event
. |
void |
run(ServiceRequest request)
Writes the chart to the ServletOutputStream. |
void |
setCacheMode(CacheMode c)
sets the CacheMode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JFreeChartPNGOutputEvent(org.jfree.chart.JFreeChart chart,
int width,
int height, CacheMode cMode)
throws java.lang.NullPointerException,
java.lang.IllegalArgumentException
JFreeChartPNGOutputEvent for the given chart with
the given width and height for the PNG.
chart - the JFreeChart to create the PNG fromwidth - the width for the PNGheight - the height for the PNGcMode - the CacheMode
java.lang.NullPointerException - if chart or cMode is null
java.lang.IllegalArgumentException - if width < 0 | height < 0| Method Detail |
|---|
public void run(ServiceRequest request)
ServletOutputStream.
run in interface Eventrequest - the current ServiceRequestEvent.run(org.torweg.pulse.service.request.ServiceRequest)public boolean isOutputEvent()
EventEvent will write to the
OutputStream and so render the OutputStream
unwritable for future results.
Please note: After writing to the OutputStream it should be
flushed and closed.
isOutputEvent in interface EventtrueEvent.isOutputEvent()public boolean isStopEvent()
EventInvoker should proceed executing other
bundles or if it should terminate after executing this Event
.
isStopEvent in interface EventtrueEvent.isStopEvent()public boolean isSingularEvent()
EventEvent will only be added once to the
EventManager and block all other Events.
If an Event of the same type has already been added to the
EventManager, subsequent calls to
EventManager.addEvent(Event) will return without adding the given
Event.
isSingularEvent in interface EventtrueEvent.isSingularEvent()public CacheMode getCacheMode()
CacheMode.
getCacheMode in interface EventEvent.getCacheMode()public void setCacheMode(CacheMode c)
CacheMode.
setCacheMode in interface Eventc - the cache mode to setEvent.setCacheMode(org.torweg.pulse.service.request.CacheMode)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||