Package tripleplay.ui

Class Layout

java.lang.Object
tripleplay.ui.Layout
Direct Known Subclasses:
AbsoluteLayout, AxisLayout, BorderLayout, FlowLayout, TableLayout

public abstract class Layout extends Object
Defines the interface to layouts, which implement a particular layout policy.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    An abstract base class for all layout constraints.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract pythagoras.f.Dimension
    computeSize(Container<?> elems, float hintX, float hintY)
    Computes and returns the size needed to arrange children of the supplied container according to their preferred size, given the specified x and y size hints.
    abstract void
    layout(Container<?> elems, float left, float top, float width, float height)
    Lays out the supplied elements into a region of the specified dimensions.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Layout

      public Layout()
  • Method Details

    • computeSize

      public abstract pythagoras.f.Dimension computeSize(Container<?> elems, float hintX, float hintY)
      Computes and returns the size needed to arrange children of the supplied container according to their preferred size, given the specified x and y size hints.
    • layout

      public abstract void layout(Container<?> elems, float left, float top, float width, float height)
      Lays out the supplied elements into a region of the specified dimensions.