|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
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 LAReport
LAReport.getFileExtension()
public java.lang.String getName()
getName
in interface LAReport
LAReport.getName()
public void setName(java.lang.String name)
setName
in interface LAReport
name
- Report name.LAReport.setName(String)
public java.lang.String getMimeType()
getMimeType
in interface LAReport
LAReport.getMimeType()
public void saveToFile(java.lang.String filename) throws java.io.IOException
If the file exists, it is overwritten.
saveToFile
in interface LAReport
filename
- 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 LAReport
width
- Image width.height
- Image height.
public javax.swing.JComponent createGUI()
JLabel
component.
createGUI
in interface LAReport
LAReport.createGUI()
public java.lang.String toString()
toString
in interface LAReport
LAReport.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |