GridLookPainterDefaultGridLookPainterpublic abstract class BasicGridLookPainter extends java.lang.Object implements GridLookPainter
Subclasses must have the following methods implemented:
| Constructor | Description |
|---|---|
BasicGridLookPainter(org.eclipse.swt.graphics.Device device) |
Constructs a BasicGridLook painter.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
paint(org.eclipse.swt.graphics.GC gc,
int x,
int y,
int[] columns,
int[] headerRows,
int[][] headerColSpans,
int firstRowIndex,
boolean topOpen,
int[] bodyRows,
int[][] bodyColSpans,
boolean bottomOpen,
int[] footerRows,
int[][] footerColSpans) |
Paints the grid look onto the GC.
|
dispose, getMarginspublic BasicGridLookPainter(org.eclipse.swt.graphics.Device device)
device - the printer device (may not be null). This argument will be
saved in the protected device field.public void paint(org.eclipse.swt.graphics.GC gc,
int x,
int y,
int[] columns,
int[] headerRows,
int[][] headerColSpans,
int firstRowIndex,
boolean topOpen,
int[] bodyRows,
int[][] bodyColSpans,
boolean bottomOpen,
int[] footerRows,
int[][] footerColSpans)
GridLookPainterpaint in interface GridLookPaintergc - the graphics context to paint on.x - the x coordinate of the top-left of the grid.y - the y coordinate of the top-left of the grid.columns - the column widths. The left and right margins of each cell are
included in the column widths.headerRows - the header row heights.headerColSpans - a two-dimensional array of cell spans in the header. Each
element in the outer array is a header row. Each element of an
inner array is a cell, where the element value indicates how
many columns the cell spans.firstRowIndex - the zero-based index of the first row displayed on the page.topOpen - whether the top body row should be drawn with the top edge of
the cell border "open." An open top border is a visual
indication that the top row is being continued from the
previous page.bodyRows - the body row heights.bodyColSpans - a two-dimensional array of cell spans in the body. Each
element in the outer array is a body row. Each element of an
inner array is a cell, where the element value indicates how
many columns the cell spans.bottomOpen - whether the bottom body row should be drawn with the bottom
edge of the cell border "open." An open bottom border is a
visual indication that the bottom row will be continued on the
next page.footerRows - the footer row heights.footerColSpans - a two-dimensional array of cell spans in the footer. Each
element in the outer array is a footer row. Each element of an
inner array is a cell, where the element value indicates how
many columns the cell spans.