|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.java.util.gui.swt.LayoutUtils
Contains utility methods to create SWT Layouts.
| Constructor Summary | |
LayoutUtils()
|
|
| Method Summary | |
static FillLayout |
createFillLayout(int type,
int marginHeight,
int marginWidth,
int spacing)
Creates a new FillLayout using the specified settings.
|
static GridData |
createGridData(int horizontalAlignment,
int verticalAlignment,
boolean grabExcessHorizontalSpace,
boolean grabExcessVerticalSpace,
int horizontalSpan,
int verticalSpan,
int heightHint,
int widthHint)
Creates a new GridData object using the specified
settings.
|
static GridLayout |
createGridLayout(int columns,
boolean makeColumnsEqualWidth,
int marginHeight,
int marginWidth,
int marginTop,
int marginBottom,
int marginLeft,
int marginRight,
int verticalSpacing,
int horizontalSpacing)
Creates a new GridLayout using the specified settings.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LayoutUtils()
| Method Detail |
public static GridLayout createGridLayout(int columns,
boolean makeColumnsEqualWidth,
int marginHeight,
int marginWidth,
int marginTop,
int marginBottom,
int marginLeft,
int marginRight,
int verticalSpacing,
int horizontalSpacing)
Creates a new GridLayout using the specified settings.
columns - the number of cell columnsmakeColumnsEqualWidth - true to force all columns to
have the same width; false if not to force sam widthmarginHeight - the number of pixels of vertical margin
that will be placed along the top and bottom edges of the layoutmarginWidth - the number of pixels of horizontal margin
that will be placed along the left and right edges of the layoutmarginTop - the number of pixels of vertical margin
that will be placed along the top edge of the layoutmarginBottom - the number of pixels of vertical margin
that will be placed along the bottom edge of the layoutmarginLeft - the number of pixels of horizontal margin
that will be placed along the left edge of the layoutmarginRight - the number of pixels of horizontal margin
that will be placed along the right edge of the layoutverticalSpacing - the number of pixels between the bottom
edge of one cell and the top edge of its neighbouring cell underneathhorizontalSpacing - the number of pixels between the right
edge of one cell and the left edge of its neighbouring cell to
the right
GridLayout instance according to the
specified settings
public static GridData createGridData(int horizontalAlignment,
int verticalAlignment,
boolean grabExcessHorizontalSpace,
boolean grabExcessVerticalSpace,
int horizontalSpan,
int verticalSpan,
int heightHint,
int widthHint)
Creates a new GridData object using the specified
settings.
horizontalAlignment - specifies how controls will be positioned
horizontally within a cell.
Possible values are: verticalAlignment - specifies how controls will be positioned
vertically within a cell.
Possible values are: grabExcessHorizontalSpace - whether cell will be made wide enough to fit the remaining horizontal spacegrabExcessVerticalSpace - whether cell will be made high enough to fit the remaining vertical spacehorizontalSpan - the number of column cells that the control
will take upverticalSpan - the number of row cells that the control
will take upheightHint - the preferred height in pixels. This value
is the hHint passed into Control.computeSize(int, int, boolean)
to determine the preferred size of the controlwidthHint - the preferred width in pixels. This value
is the wHint passed into Control.computeSize(int, int, boolean)
to determine the preferred size of the control
GridData object according to the
specified settings
public static FillLayout createFillLayout(int type,
int marginHeight,
int marginWidth,
int spacing)
Creates a new FillLayout using the specified settings.
type - specifies how controls will be positioned
within the layout.
Possible values are:
marginHeight - the number of pixels of vertical margin
that will be placed along the top and bottom edges of the layoutmarginWidth - the number of pixels of horizontal margin
that will be placed along the left and right edges of the layoutspacing - the number of pixels between the edge of one cell
and the edge of its neighbouring cell
FillLayout instance according to the
specified settings
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||