|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--voji.report.Report
This class holds a complete report and is able to print it out in various ways.
Constructor Summary | |
Report()
Constructs a new empty Report instance |
Method Summary | |
void |
add(ReportComponent component)
Adds a new component |
void |
addBottom(ReportComponent component)
Adds a new bottom component. |
void |
addHeader(ReportComponent component)
Adds a new header component. |
protected void |
draw(java.util.ListIterator components,
PageGraphics graphics)
Draws the given components onto the given graphics context. |
void |
print(CopyPrintJob printJob)
Prints this report to a printer |
void |
print(java.awt.PrintJob printJob)
Prints this report to a printer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Report()
Report
instance
Method Detail |
public void add(ReportComponent component)
component
- the component to addpublic void addHeader(ReportComponent component)
component
- the component to addpublic void addBottom(ReportComponent component)
component
- the component to addpublic void print(CopyPrintJob printJob)
printJob
- the CopyPrintJob
where to draw topublic void print(java.awt.PrintJob printJob)
printJob
- the PrintJob
where to draw toprotected void draw(java.util.ListIterator components, PageGraphics graphics)
Iterator
will point to the first component of the next page.
components
- an Iterator
containing the
report components to drawgraphics
- the graphics context where to draw to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |