Package ej.mwt.style.dimension
Class DimensionHelper
- java.lang.Object
-
- ej.mwt.style.dimension.DimensionHelper
-
public class DimensionHelper extends java.lang.ObjectHelps the dimensions to lay out a widget with a specific size.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidlayOut(Widget widget, Rectangle bounds, boolean useFixedWidth, boolean useFixedHeight, int fixedWidth, int fixedHeight)Lays out a widget.
-
-
-
Method Detail
-
layOut
public static void layOut(Widget widget, Rectangle bounds, boolean useFixedWidth, boolean useFixedHeight, int fixedWidth, int fixedHeight)
Lays out a widget.The widget is aligned (according to the style settings) in the given area.
- Parameters:
widget- the widget.bounds- the bounds.useFixedWidth-trueto use the given fixed width instead of the given width,falseotherwise.useFixedHeight-trueto use the given fixed height instead of the given height,falseotherwise.fixedWidth- the fixed width.fixedHeight- the fixed height.
-
-