Package jexer.bits

Class WidgetUtils


  • public class WidgetUtils
    extends java.lang.Object
    WidgetUtils contains methods to: - Tile windows.
    • Constructor Summary

      Constructors 
      Constructor Description
      WidgetUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void tileWidgets​(java.util.List<? extends TWidget> widgets, int width, int height, int topLine)
      Re-layout a list of widgets as non-overlapping tiles into a rectangular space.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WidgetUtils

        public WidgetUtils()
    • Method Detail

      • tileWidgets

        public static void tileWidgets​(java.util.List<? extends TWidget> widgets,
                                       int width,
                                       int height,
                                       int topLine)
        Re-layout a list of widgets as non-overlapping tiles into a rectangular space. This produces almost the same results as Turbo Pascal 7.0's IDE.
        Parameters:
        widgets - the list of widgets
        width - the width of the rectangle to fit the widgets in
        height - the height of the rectangle to fit the widgets in
        topLine - the Y top use for a top-line widget