|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PageDrawable
The PageDrawable can be used to render a single page into an arbitary Graphics2D context. PageDrawables are created by the PrintReportProcessor.
| Method Summary | |
|---|---|
void |
draw(Graphics2D graphics,
Rectangle2D bounds)
Renders the content of the drawable. |
RenderNode[] |
getNodesAt(double x,
double y,
double width,
double height,
String namespace,
String name)
Returns all layouted render-nodes that occupy the given area and which have the attribute specified by name and namespace set. |
RenderNode[] |
getNodesAt(double x,
double y,
String namespace,
String name)
Returns all layouted render-nodes that occupy the given point and which have the attribute specified by name and namespace set. |
PageFormat |
getPageFormat()
Describes the physical output characteristics like page size, margins, and imaginable area. |
Dimension |
getPreferredSize()
Returns the preferred size of the output. |
| Method Detail |
|---|
PageFormat getPageFormat()
Dimension getPreferredSize()
void draw(Graphics2D graphics,
Rectangle2D bounds)
graphics - the graphics context to which to render to.bounds - the bounds within which the content should be rendered.
RenderNode[] getNodesAt(double x,
double y,
String namespace,
String name)
x - the x coordinate of the point.y - the y coordinate of the point.namespace - the attribute's namespace.name - the attribute's name.
RenderNode[] getNodesAt(double x,
double y,
double width,
double height,
String namespace,
String name)
x - the x coordinate of the origin of the area.y - the y coordinate of the origin of the area.width - the height of the area.height - the width of the area.namespace - the attribute's namespace.name - the attribute's name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||