ca.sqlpower.wabit.report
Interface ReportContentRenderer

All Superinterfaces:
ca.sqlpower.object.SPObject, WabitObject
All Known Subinterfaces:
WabitObjectReportRenderer
All Known Implementing Classes:
CellSetRenderer, ChartRenderer, ImageRenderer, Label, ResultSetRenderer

public interface ReportContentRenderer
extends WabitObject

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

renderReportContent

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.

Report content renderers can be implemented in two different ways:


resetToFirstPage

void resetToFirstPage()
Tells this content renderer that the next call to #renderReportContent(Graphics2D, ContentBox, double) should produce the first page of output again.


getBackgroundColour

java.awt.Color getBackgroundColour()

refresh

void refresh()
Refreshes the data being rendered by this ReportContentRenderer so that it has the most recent data. If the data this renderer renders is static, then it doesn't need to do anything (no-op).



Copyright © 2009. All Rights Reserved.