|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.bs.mdi.DataPageable
A Pageable implementation receives its printing data from
a RootData object.
| Nested Class Summary | |
class |
DataPageable.DataPrintable
|
class |
DataPageable.PrintException
|
| Field Summary | |
protected RootData |
data
|
protected PageFormat |
format
|
| Fields inherited from interface java.awt.print.Pageable |
UNKNOWN_NUMBER_OF_PAGES |
| Constructor Summary | |
DataPageable()
Creates a new DataPageable with no RootData associated with it. |
|
| Method Summary | |
RootData |
getData()
Returns the RootData which is associated with this DataPageable. |
int |
getNumberOfPages()
|
PageFormat |
getPageFormat()
Returns the page format. |
PageFormat |
getPageFormat(int pageIndex)
|
Printable |
getPrintable(int pageIndex)
|
void |
setData(RootData data)
Associates the given RootData with this DataPageable. |
void |
setPageFormat(PageFormat format)
Sets the page format used for the print job. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected RootData data
protected PageFormat format
| Constructor Detail |
public DataPageable()
| Method Detail |
public RootData getData()
public void setData(RootData data)
throws DataPageable.PrintException
Printer
(see also: RootData.getPrinter()).
data - the data
DataPageable.PrintExceptionpublic PageFormat getPageFormat()
public PageFormat getPageFormat(int pageIndex)
getPageFormat in interface Pageablepublic void setPageFormat(PageFormat format)
format - the formatpublic int getNumberOfPages()
getNumberOfPages in interface Pageablepublic Printable getPrintable(int pageIndex)
getPrintable in interface Pageable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||