|
ReportCat 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectli.netcat.print.table.DefaultTableLook
Default implementation of a table look.
| Constructor Summary | |
DefaultTableLook()
|
|
| 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. |
void |
setEvenStripeColor(java.awt.Color color)
Sets the color of the even stripes. |
void |
setLineColor(java.awt.Color color)
Sets the color of the lines. |
void |
setOddStripeColor(java.awt.Color color)
Sets the color of the odd stripes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultTableLook()
| Method Detail |
public void setLineColor(java.awt.Color color)
color - The color of the lines.public void setEvenStripeColor(java.awt.Color color)
color - The color of the even stripes.public void setOddStripeColor(java.awt.Color color)
color - The color of the odd stripes.
public TableMargins getTableMargins(TablePrint table,
java.awt.Graphics g)
TableLookTableMargins is an immutable object, this method might always return
the same instance.
getTableMargins in interface TableLooktable - 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)
TableLook
paint in interface TableLooktable - 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 | |||||||||