public class DimensionHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
layOut(Widget widget,
Rectangle bounds,
boolean useFixedWidth,
boolean useFixedHeight,
int fixedWidth,
int fixedHeight)
Lays out a widget.
|
public static void layOut(Widget widget, Rectangle bounds, boolean useFixedWidth, boolean useFixedHeight, int fixedWidth, int fixedHeight)
The widget is aligned (according to the style settings) in the given area.
widget - the widget.bounds - the bounds.useFixedWidth - true to use the given fixed width instead of the given width, false
otherwise.useFixedHeight - true to use the given fixed height instead of the given height, false
otherwise.fixedWidth - the fixed width.fixedHeight - the fixed height.