Class GridLookPainterPiece
java.lang.Object
org.eclipse.nebula.paperclips.core.grid.internal.GridLookPainterPiece
- All Implemented Interfaces:
PrintPiece
class GridLookPainterPiece extends java.lang.Object implements PrintPiece
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description GridLookPainterPiece(GridLookPainter look, int[] colSizes, int[] headerRows, int[][] headerColSpans, int firstRowIndex, boolean topOpen, int[] bodyRows, int[][] bodyColSpans, boolean bottomOpen, int[] footerRows, int[][] footerColSpans)
-
Method Summary
Modifier and Type Method 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.
-
Field Details
-
look
-
columns
final int[] columns -
headerRows
final int[] headerRows -
headerColSpans
final int[][] headerColSpans -
firstRowIndex
final int firstRowIndex -
topOpen
final boolean topOpen -
bodyRows
final int[] bodyRows -
bodyColSpans
final int[][] bodyColSpans -
bottomOpen
final boolean bottomOpen -
footerRows
final int[] footerRows -
footerColSpans
final int[][] footerColSpans -
size
final org.eclipse.swt.graphics.Point size
-
-
Constructor Details
-
GridLookPainterPiece
GridLookPainterPiece(GridLookPainter look, int[] colSizes, int[] headerRows, int[][] headerColSpans, int firstRowIndex, boolean topOpen, int[] bodyRows, int[][] bodyColSpans, boolean bottomOpen, int[] footerRows, int[][] footerColSpans)
-
-
Method Details
-
dispose
public void dispose()Description copied from interface:PrintPiece
Disposes the system resources allocated by this PrintPiece. The dispose method is not a permanent disposal of a PrintPiece. It is intended to reclaim system resources, however future calls to paint(GC,int,int) may require that the resources be allocated again.- Specified by:
dispose
in interfacePrintPiece
-
getSize
public org.eclipse.swt.graphics.Point getSize()Description copied from interface:PrintPiece
Returns the dimensions of this PrintPiece, in pixels.- Specified by:
getSize
in interfacePrintPiece
- Returns:
- the dimensions of this PrintPiece, in pixels.
-
paint
public void paint(org.eclipse.swt.graphics.GC gc, int x, int y)Description copied from interface:PrintPiece
Draws this PrintPiece on the given graphics device, at the given coordinates.- Specified by:
paint
in interfacePrintPiece
- Parameters:
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.
-