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()
GridMargins
getLeft
in interface GridMargins
public int getHorizontalSpacing()
GridMargins
getHorizontalSpacing
in interface GridMargins
public int getRight()
GridMargins
getRight
in interface GridMargins
public int getHeaderTop()
GridMargins
getHeaderTop
in interface GridMargins
public int getHeaderVerticalSpacing()
GridMargins
getHeaderVerticalSpacing
in interface GridMargins
public int getBodyTop(boolean headerPresent, boolean open)
GridMargins
getBodyTop
in interface GridMargins
headerPresent
- 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()
GridMargins
getBodyVerticalSpacing
in interface GridMargins
public int getBodyBottom(boolean footerPresent, boolean open)
GridMargins
getBodyBottom
in interface GridMargins
footerPresent
- 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()
GridMargins
getFooterVerticalSpacing
in interface GridMargins
public int getFooterBottom()
GridMargins
getFooterBottom
in interface GridMargins