|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReportContentRenderer
Interface for providers of rendered (absolute layout) content.
| Nested Class Summary | |
|---|---|
static class |
ReportContentRenderer.BackgroundColours
|
| Method Summary | |
|---|---|
java.awt.Color |
getBackgroundColour()
|
void |
refresh()
Refreshes the data being rendered by this ReportContentRenderer so that it has the most recent data. |
boolean |
renderReportContent(java.awt.Graphics2D g,
ContentBox contentBox,
double scaleFactor,
int pageIndex,
boolean printing)
Renders as much report content as will fit within the bounds of the given content box. |
void |
resetToFirstPage()
Tells this content renderer that the next call to #renderReportContent(Graphics2D, ContentBox, double) should
produce the first page of output again. |
| Methods inherited from interface ca.sqlpower.wabit.WabitObject |
|---|
getParent |
| Methods inherited from interface ca.sqlpower.object.SPObject |
|---|
addChild, addSPListener, allowsChildren, begin, childPositionOffset, cleanup, commit, generateNewUUID, getChildren, getChildren, getDependencies, getName, getSession, getUUID, removeChild, removeDependency, removeSPListener, rollback, setName, setParent, setUUID |
| Method Detail |
|---|
boolean renderReportContent(java.awt.Graphics2D g,
ContentBox contentBox,
double scaleFactor,
int pageIndex,
boolean printing)
Report content renderers can be implemented in two different ways:
g - The graphics to render into. The origin (top left corner or
(0,0)) of this graphics is translated to the top-left corner
of the content box.contentBox - The box that determines the size and shape that the rendered
data must fit within. You can ignore the X and Y coordinates
of the box because the given graphics object's origin is
already set to this box's origin.scaleFactor - The amount of scaling currently in effect. The nominal size of
a unit when displayed via the given graphics is scaleFactor/72
inches.pageIndex - The zero-based page number for which the corresponding report
content will be rendered.printing - This tells the renderer if the report is being printed. If
set to true the full report will be built, otherwise a cached
result will be used. Set this to true if the report is being
printed.
void resetToFirstPage()
#renderReportContent(Graphics2D, ContentBox, double) should
produce the first page of output again.
java.awt.Color getBackgroundColour()
void refresh()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||