Class DimensionHelper


  • public class DimensionHelper
    extends java.lang.Object
    Helps 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 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
    • 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.