|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GridLookPainter
Interface for drawing a GridLook.
| Method Summary | |
|---|---|
void |
dispose()
Disposes the system resources allocated by this GridLookPainter. |
GridMargins |
getMargins()
Returns the grid margins used for the GridLook. |
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. |
| Method Detail |
|---|
GridMargins getMargins()
GridMargins
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)
gc - 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.void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||