| java.lang.Object org.jfree.report.CustomPageDefinition
CustomPageDefinition | public class CustomPageDefinition implements PageDefinition(Code) | | A page definition, that consists of one or many pages. The pages are allowed to
overlapp or to leave areas of the page uncovered.
author: Thomas Morgner See Also: PageDefinition |
Constructor Summary | |
public | CustomPageDefinition() Creates a new (initialy empty and therefore invalid) page definition. |
Method Summary | |
public void | addPageFormat(PageFormat format, float x, float y) Adds a new page format to the page definition. | public Object | clone() Clones the given page definition object. | public boolean | equals(Object obj) Checks, whether the given object is equal to this one.
Parameters: obj - the other object. | public float | getHeight() Returns the total height of the page definition. | public int | getPageCount() Returns the number of physical pages in the logical page definition. | public PageFormat | getPageFormat(int pos) Returns the page format for the given page number. | public Rectangle2D | getPagePosition(int index) Describes the internal position of the given page within the logical page. | public Rectangle2D[] | getPagePositions() Returns all page positions as array. | public float | getWidth() Returns the total width of the page definition. | public int | hashCode() Computes the hashcode of this page definition. |
CustomPageDefinition | public CustomPageDefinition()(Code) | | Creates a new (initialy empty and therefore invalid) page definition.
|
addPageFormat | public void addPageFormat(PageFormat format, float x, float y)(Code) | | Adds a new page format to the page definition.
Parameters: format - the page format Parameters: x - the x-position to where the imageable-x of the pageformat is mapped. Parameters: y - the y-position to where the imageable-y of the pageformat is mapped. |
equals | public boolean equals(Object obj)(Code) | | Checks, whether the given object is equal to this one.
Parameters: obj - the other object. true, if the other object is equal, false otherwise. |
getHeight | public float getHeight()(Code) | | Returns the total height of the page definition.
the total height of the page definition. |
getPageCount | public int getPageCount()(Code) | | Returns the number of physical pages in the logical page definition.
the number of physical pages. |
getPageFormat | public PageFormat getPageFormat(int pos)(Code) | | Returns the page format for the given page number. The page format contains local
coordinates - that means that the point (0,0) denotes the upper left corner of this
returned page format and not global coordinates.
Parameters: pos - the position of the pageformat within the page the given pageformat. |
getPagePosition | public Rectangle2D getPagePosition(int index)(Code) | | Describes the internal position of the given page within the logical page. The
logical page does not include any page margins, the printable area for a page starts
at (0,0).
Parameters: index - the index of the page. the position of the page (within the global page). |
getWidth | public float getWidth()(Code) | | Returns the total width of the page definition.
the total width of the page definition. |
hashCode | public int hashCode()(Code) | | Computes the hashcode of this page definition.
the hashcode. |
|
|