|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the methods needed to manipulate generated reports.
Generated reports could be based on an XML Document as
XMLReport
, a chart as
ChartReport
or simple plain text buffer as
TXTReport
or any other implementation of
yours.
Method Summary | |
java.awt.image.BufferedImage |
createBufferedImage(int width,
int height)
Create an image from the report as a BufferedImage . |
javax.swing.JComponent |
createGUI()
Create the GUI displaying the report as a JComponent component. |
java.lang.String |
getFileExtension()
Return the file extension of the report. |
java.lang.String |
getMimeType()
Return the mime type of the report. |
java.lang.String |
getName()
Return the name of the report. |
void |
saveToFile(java.lang.String filename)
Save the report with the specified filename. |
void |
setName(java.lang.String name)
Set the name of the report. |
java.lang.String |
toString()
Return the string representation of the report. |
Method Detail |
public java.lang.String getFileExtension()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- Report name.public java.lang.String getMimeType()
public void saveToFile(java.lang.String filename) throws java.io.IOException
If the file exists, it is overwritten.
filename
- Name of the output file.
java.io.IOException
- If an I/O exception occurs.public java.awt.image.BufferedImage createBufferedImage(int width, int height)
BufferedImage
.
width
- Image width.height
- Image height.
public javax.swing.JComponent createGUI()
JComponent
component.
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |