|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.logAnalyzer.reports.TXTReport
This class is a wrapper used to encapsulate a String in a
LAReport object.
| Constructor Summary | |
TXTReport(java.lang.String name,
java.lang.String report)
Wrap the specified document in a new wrapper instance. |
|
| 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 JLabel
component. |
java.lang.String |
getFileExtension()
Return the file extension of the report : txt. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TXTReport(java.lang.String name,
java.lang.String report)
name - Name of the report.report - String to wrap as a report.| Method Detail |
public java.lang.String getFileExtension()
getFileExtension in interface LAReportLAReport.getFileExtension()public java.lang.String getName()
getName in interface LAReportLAReport.getName()public void setName(java.lang.String name)
setName in interface LAReportname - Report name.LAReport.setName(String)public java.lang.String getMimeType()
getMimeType in interface LAReportLAReport.getMimeType()
public void saveToFile(java.lang.String filename)
throws java.io.IOException
If the file exists, it is overwritten.
saveToFile in interface LAReportfilename - Name of the output file.
java.io.IOException - If an I/O exception occurs.LAReport.saveToFile(java.lang.String)
public java.awt.image.BufferedImage createBufferedImage(int width,
int height)
BufferedImage.
This implementation returns always null.
createBufferedImage in interface LAReportwidth - Image width.height - Image height.
public javax.swing.JComponent createGUI()
JLabel
component.
createGUI in interface LAReportLAReport.createGUI()public java.lang.String toString()
toString in interface LAReportLAReport.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||