class DefaultGridMargins extends java.lang.Object implements GridMargins
| Constructor and Description |
|---|
DefaultGridMargins(BorderPainter border,
org.eclipse.swt.graphics.Point cellSpacing,
org.eclipse.swt.graphics.Rectangle cellPadding,
int headerClosedSpacing,
int headerOpenSpacing,
int footerClosedSpacing,
int footerOpenSpacing) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBodyBottom(boolean footerPresent,
boolean open)
Returns the margin, in pixels, at the bottom of the body cells.
|
int |
getBodyTop(boolean headerPresent,
boolean open)
Returns the margin, in pixels, at the top of the body cells.
|
int |
getBodyVerticalSpacing()
Returns the vertical spacing, in pixels, between rows in the body.
|
int |
getFooterBottom()
Returns the margin, in pixels, at the bottom of the footer cells.
|
int |
getFooterVerticalSpacing()
Returns the vertical spacing, in pixels, between rows in the footer.
|
int |
getHeaderTop()
Returns the margin, in pixels, at the top of the header cells.
|
int |
getHeaderVerticalSpacing()
Returns the vertical spacing, in pixels, between rows in the header.
|
int |
getHorizontalSpacing()
Returns the horizontal spacing, in pixels, between grid cells.
|
int |
getLeft()
Returns the margin, in pixels, at the left side of the grid.
|
int |
getRight()
Returns the margin, in pixels, at the right side of the grid.
|
DefaultGridMargins(BorderPainter border, org.eclipse.swt.graphics.Point cellSpacing, org.eclipse.swt.graphics.Rectangle cellPadding, int headerClosedSpacing, int headerOpenSpacing, int footerClosedSpacing, int footerOpenSpacing)
public int getLeft()
GridMarginsgetLeft in interface GridMarginspublic int getHorizontalSpacing()
GridMarginsgetHorizontalSpacing in interface GridMarginspublic int getRight()
GridMarginsgetRight in interface GridMarginspublic int getHeaderTop()
GridMarginsgetHeaderTop in interface GridMarginspublic int getHeaderVerticalSpacing()
GridMarginsgetHeaderVerticalSpacing in interface GridMarginspublic int getBodyTop(boolean headerPresent,
boolean open)
GridMarginsgetBodyTop in interface GridMarginsheaderPresent - whether a header is present.open - whether the top row of body cells are "open." That is, whether
the top row was started on a previous page and is continuing
on this page. A GridLook may choose to show a visual
indication for cells that were "opened" on previous pages.public int getBodyVerticalSpacing()
GridMarginsgetBodyVerticalSpacing in interface GridMarginspublic int getBodyBottom(boolean footerPresent,
boolean open)
GridMarginsgetBodyBottom in interface GridMarginsfooterPresent - whether a footer is present.open - whether the bottom row of body cells are "open." That is,
whether the bottom row still has more content to display on
the next page. A GridLook may choose to show a visual
indication for cells that will be "continued" on the next
page.public int getFooterVerticalSpacing()
GridMarginsgetFooterVerticalSpacing in interface GridMarginspublic int getFooterBottom()
GridMarginsgetFooterBottom in interface GridMargins