Package ej.mwt.style.dimension

## Class DimensionHelper

- java.lang.Object
- - ej.mwt.style.dimension.DimensionHelper

-     public class DimensionHelper
      extends Object

  Helps the dimensions to lay out a widget with a specific size.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `DimensionHelper()` |

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static void` | `layOut​(Widget widget, Rectangle bounds, boolean useFixedWidth, boolean useFixedHeight, int fixedWidth, int fixedHeight)` | Lays out a widget.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DimensionHelper

          public DimensionHelper()

  - ### 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` - `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.