|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.logAnalyzer.reports.HTMLReport
This class is a wrapper used to encapsulate an HTML doc in a
LAReport
object.
Constructor Summary | |
HTMLReport(java.lang.String name,
org.w3c.dom.Document 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 JEditorPane component. |
java.lang.String |
getFileExtension()
Return the file extension of the report : html. |
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()
Serialize the wrapped document to a string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HTMLReport(java.lang.String name, org.w3c.dom.Document report)
name
- Name of the report.report
- Document 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(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()
JEditorPane
component.
createGUI
in interface LAReport
LAReport.createGUI()
public java.lang.String toString()
toString
in interface LAReport
IOException
occurs.LAReport.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |