public class DefaultGridLookPainter extends BasicGridLookPainter
device| Constructor and Description |
|---|
DefaultGridLookPainter(DefaultGridLook look,
org.eclipse.swt.graphics.Device device,
org.eclipse.swt.graphics.GC gc) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes the system resources allocated by this GridLookPainter.
|
GridMargins |
getMargins()
Returns the grid margins used for the GridLook.
|
protected void |
paintBodyCell(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle bounds,
int row,
int col,
int colspan,
boolean topOpen,
boolean bottomOpen)
Paint the decorations for the described body cell.
|
protected void |
paintFooterCell(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle bounds,
int row,
int col,
int colspan)
Paint the decorations for the described footer cell.
|
protected void |
paintHeaderCell(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle bounds,
int row,
int col,
int colspan)
Paint the decorations for the described header cell.
|
paintpublic DefaultGridLookPainter(DefaultGridLook look, org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)
public GridMargins getMargins()
GridLookPainterGridMarginsprotected void paintHeaderCell(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle bounds,
int row,
int col,
int colspan)
BasicGridLookPainterpaintHeaderCell in class BasicGridLookPaintergc - the graphics context to use for painting.bounds - the bounds of the cell, excluding margins.row - the row offset of the cell within the header.col - the column offset of the cell within the header.colspan - the number of columns that this cell spans.protected void paintBodyCell(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle bounds,
int row,
int col,
int colspan,
boolean topOpen,
boolean bottomOpen)
BasicGridLookPainterpaintBodyCell in class BasicGridLookPaintergc - the graphics context to use for painting.bounds - the bounds of the cell, excluding margins.row - the row offset of the cell within the header.col - the column offset of the cell within the header.colspan - the number of columns that this cell spans.topOpen - whether the cell should be drawn with the top edge of the cell
border "open." An open top border is a visual cue that the
cell is being continued from the previous page.bottomOpen - whether the cell should be drawn with the bottom edge of the
cell border "open." An open bottom border is a visual cue that
the cell will be continued on the next page.protected void paintFooterCell(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle bounds,
int row,
int col,
int colspan)
BasicGridLookPainterpaintFooterCell in class BasicGridLookPaintergc - the graphics context to use for painting.bounds - the bounds of the cell, excluding margins.row - the row offset of the cell within the header.col - the column offset of the cell within the header.colspan - the number of columns that this cell spans.public void dispose()
GridLookPainter