|
||||||||||
| PREV CLASS Documentation homepage. NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.util.print.IlvPage
public class IlvPage
A IlvPage defines a page that can be printed.
It maintains a set of IlvPrintableObject objects. When a
IlvPage is being printed, it calls the
print() method of the contained printable objects.
The IlvPage class is designed to work with a
IlvPrintableDocument object: IlvPages are
added to the IlvPrintableDocument.
IlvPrintableObject| Field Summary |
|---|
| Fields inherited from interface java.awt.print.Printable |
|---|
NO_SUCH_PAGE, PAGE_EXISTS |
| Constructor Summary | |
|---|---|
IlvPage()
Creates an empty page. |
|
| Method Summary | |
|---|---|
void |
addPrintableObject(IlvPrintableObject printable)
Adds a printable object to the page. |
IlvPrintableDocument |
getDocument()
Returns the owner IlvPrintableDocument. |
PageFormat |
getPageFormat()
Returns the page format of the printable page. |
int |
getPageIndex()
Returns the page index of the page. |
int |
getPrintableCount()
Returns the number of printable objects in the page. |
IlvPrintableObject |
getPrintableObject(int index)
Gets the IlvPrintableObject at the specified position. |
int |
print(Graphics graphics,
PageFormat format,
int pageIndex)
Implements the java.awt.print.Printable.print method. |
void |
removePrintableObject(IlvPrintableObject printable)
Removes the specified printable object from the page. |
void |
setDocument(IlvPrintableDocument document)
Sets the owner IlvPrintableDocument. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvPage()
| Method Detail |
|---|
public IlvPrintableDocument getDocument()
IlvPrintableDocument.
IlvPrintableDocument.public void setDocument(IlvPrintableDocument document)
IlvPrintableDocument.
document - The owner IlvPrintableDocument.public PageFormat getPageFormat()
IlvPrintableDocument.
public int getPrintableCount()
public IlvPrintableObject getPrintableObject(int index)
IlvPrintableObject at the specified position.
index - The index of the printable object.public int getPageIndex()
IlvPrintableDocument.
public void addPrintableObject(IlvPrintableObject printable)
printable - The printable object to be added.public void removePrintableObject(IlvPrintableObject printable)
printable - The printable object to be removed.
public int print(Graphics graphics,
PageFormat format,
int pageIndex)
throws PrinterException
java.awt.print.Printable.print method. If the
IlvPrintableDocument of this page has a template page,
this method first prints the template page. Then, it
calls the print method of the contained
IlvPrintableObject.
print in interface Printablegraphics - The output device, which must be a Graphics2D
object.format - The format of the page.pageIndex - The index of the page.
PrinterException
|
||||||||||
| PREV CLASS Documentation homepage. NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||