|
ReportCat 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Definition of a pluggable look of a table. Implement this interface for your own table look.
Method Summary | |
TableMargins |
getTableMargins(TablePrint table,
java.awt.Graphics g)
Returns the margins of the table. |
void |
paint(TablePrint table,
java.awt.Graphics g,
int x,
int y,
int[] columnWidths,
int[] rowHeights,
int headerHeight,
int footerHeight)
Paints the whole look of the table. |
Method Detail |
public TableMargins getTableMargins(TablePrint table, java.awt.Graphics g)
TableMargins
is an immutable object, this method might always return
the same instance.
table
- The table for which the margins should be calculated.g
- The relevant Graphics
object.
public void paint(TablePrint table, java.awt.Graphics g, int x, int y, int[] columnWidths, int[] rowHeights, int headerHeight, int footerHeight)
table
- The table for which the look is painted.g
- The Graphics
object to paint on.x
- The x coordinate of the upper left corner of the table.y
- The y coordinate of the upper left corner of the table.columnWidths
- The column widths of the cells without the gaps of the look.rowHeights
- The row heights of the cells without the gaps of the look.headerHeight
- The height of the header. -1 means that no header is present.footerHeight
- The height of the footer. -1 means that no footer is present.
|
ReportCat 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |