alignmentWithin

fun alignmentWithin(tileGrid: TileGrid, alignmentType: ComponentAlignment): AlignmentStrategy

Calculates the Position of the resulting Component within the given tileGrid using the given ComponentAlignment.

E.g. TOP_LEFT will align this Component to the top left corner of the tileGrid.

fun alignmentWithin(container: Container, alignmentType: ComponentAlignment): AlignmentStrategy

Calculates the Position of the resulting Component within the given container using the given ComponentAlignment.

E.g. TOP_LEFT will align this Component to the top left corner of the container.