Package org.inspirenxe.strata.api.layout


package org.inspirenxe.strata.api.layout
Layout containers and the values that control placement.

Strata ships six containers. Each measures its children, then gives each one a slot; a child places itself in its slot by its own HorizontalAlignment and VerticalAlignment.

  • AnchorPanel: every child gets the whole content area, so children overlap and anchor themselves to its edges or center.
  • StackPanel: children follow one another in a row or a column.
  • GridPanel: children sit in the cells of rows and columns sized automatically, fixed, or by weight.
  • WrapPanel: children follow one another and wrap onto a new row or column when the current one is full.
  • AbsolutePanel: children sit at fixed positions.
  • ScrollPanel: children larger than the panel scroll.

A Spacer is an empty component that keeps a gap, or takes the room left in a stack panel.

To write another layout, extend CustomContainer.