|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PageDefinition
A logical page definition for a report.
Page oriented reports use the page definition to distribute the content of one logical page to the physical pages. The order of the physical pages in the page definition defines the content order in the generated documents. Flow oriented reports will use the page-definitions width as default width for the layouting. If a logical page is completly empty, it will be removed from the report and a pageCanceled event is fired. If a physical page within a non empty logical page is empty, if depends on the ReportProcessor whether the page is printed as empty page or whether it will be removed from the report. Areas of the logical page not covered by the physical pages will not cause errors, the content in these areas will be ignored and not printed. Page definitions must not be changed during the report processing, or funny things will happen.
Method Summary | |
---|---|
Object |
clone()
Creates a copy of the page definition. |
float |
getHeight()
Returns the total height of the logical page. |
int |
getPageCount()
Returns the number of physical pages in this logical page definition. |
PageFormat |
getPageFormat(int pos)
Returns the page format for the given page number. |
Rectangle2D |
getPagePosition(int index)
Describes the internal position of the given page within the logical page. |
Rectangle2D[] |
getPagePositions()
Returns all page positions as array. |
float |
getWidth()
Returns the total width of the logical page. |
Method Detail |
---|
float getWidth()
float getHeight()
int getPageCount()
Rectangle2D[] getPagePositions()
getPagePosition(int)
Rectangle2D getPagePosition(int index)
index
- the index of the physical pageformat
PageFormat getPageFormat(int pos)
pos
- the position of the pageformat within the page
Object clone() throws CloneNotSupportedException
CloneNotSupportedException
- if cloning failed for some reason.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |