|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.nordija.tapestry.bayeux.stream.jfreechart.JFreeChartResource
public abstract class JFreeChartResource
This abstract class implements the writeTo(java.io.OutputStream)
method so you don't have to concentrate
on how to stream the actual chart.
Use this if you are about to stream a JFreeChart.
Constructor Summary | |
---|---|
JFreeChartResource(org.jfree.chart.JFreeChart chart)
|
Method Summary | |
---|---|
java.lang.String |
getContentType()
Returns the content type matching the defined image format returned by getImageFormat() |
abstract int |
getHeight()
The height of the streamed chart |
abstract java.lang.String |
getImageFormat()
The image format of the chart. |
abstract int |
getWidth()
The width of the streamed chart |
void |
writeTo(java.io.OutputStream out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.nordija.tapestry.bayeux.stream.StreamResource |
---|
getContentDisposition |
Constructor Detail |
---|
public JFreeChartResource(org.jfree.chart.JFreeChart chart)
Method Detail |
---|
public abstract java.lang.String getImageFormat()
The image format of the chart. Can be one of the following:
ImageFormat.JPEG
or ImageFormat.PNG
public abstract int getWidth()
public abstract int getHeight()
public void writeTo(java.io.OutputStream out) throws java.io.IOException
writeTo
in interface StreamResource
java.io.IOException
public java.lang.String getContentType()
getImageFormat()
getContentType
in interface StreamResource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |