class GridLookPainterPiece extends java.lang.Object implements PrintPiece
Modifier and Type | Field and Description |
---|---|
(package private) int[][] |
bodyColSpans |
(package private) int[] |
bodyRows |
(package private) boolean |
bottomOpen |
(package private) int[] |
columns |
(package private) int |
firstRowIndex |
(package private) int[][] |
footerColSpans |
(package private) int[] |
footerRows |
(package private) int[][] |
headerColSpans |
(package private) int[] |
headerRows |
(package private) GridLookPainter |
look |
(package private) org.eclipse.swt.graphics.Point |
size |
(package private) boolean |
topOpen |
Constructor and Description |
---|
GridLookPainterPiece(GridLookPainter look,
int[] colSizes,
int[] headerRows,
int[][] headerColSpans,
int firstRowIndex,
boolean topOpen,
int[] bodyRows,
int[][] bodyColSpans,
boolean bottomOpen,
int[] footerRows,
int[][] footerColSpans) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes the system resources allocated by this PrintPiece.
|
org.eclipse.swt.graphics.Point |
getSize()
Returns the dimensions of this PrintPiece, in pixels.
|
void |
paint(org.eclipse.swt.graphics.GC gc,
int x,
int y)
Draws this PrintPiece on the given graphics device, at the given
coordinates.
|
final GridLookPainter look
final int[] columns
final int[] headerRows
final int[][] headerColSpans
final int firstRowIndex
final boolean topOpen
final int[] bodyRows
final int[][] bodyColSpans
final boolean bottomOpen
final int[] footerRows
final int[][] footerColSpans
final org.eclipse.swt.graphics.Point size
GridLookPainterPiece(GridLookPainter look, int[] colSizes, int[] headerRows, int[][] headerColSpans, int firstRowIndex, boolean topOpen, int[] bodyRows, int[][] bodyColSpans, boolean bottomOpen, int[] footerRows, int[][] footerColSpans)
public void dispose()
PrintPiece
dispose
in interface PrintPiece
public org.eclipse.swt.graphics.Point getSize()
PrintPiece
getSize
in interface PrintPiece
public void paint(org.eclipse.swt.graphics.GC gc, int x, int y)
PrintPiece
paint
in interface PrintPiece
gc
- a graphics context for the graphics device.x
- the x coordinate where this PrintPiece will be drawn.y
- the x coordinate where this PrintPiece will be drawn.