MeasureResult

interface MeasureResult

What a MeasurePolicy settled on: the raw extent the container measured itself to, and where its children go in it.

When this result becomes a child's Placeable, the parent reads a constraint-coerced apparent extent and Swing places the raw extent centered within that apparent space.

Properties

Link copied to clipboard

The alignment lines this layout explicitly provides, excluding any child-derived lines.

Link copied to clipboard
abstract val height: Int

The height the container actually measured itself to.

Link copied to clipboard
abstract val width: Int

The width the container actually measured itself to.

Functions

Link copied to clipboard
open fun placeChildren()

Places every child into a zero-origin, left-to-right rectangle as wide as width.

Places every child using the actual Swing pass's origin, width and component orientation.