class org.aswing.CenterLayout extends EmptyLayout

Simple LayoutManager aligned the single contained component by the container's center.

@author paling @author Igor Sadovskiy

Instance Fields

Show inherited public instance fieldsHide inherited public instance fields

Inherited from EmptyLayout

function addLayoutComponent(comp:Component, constraints:Dynamic):Void
function getLayoutAlignmentX(target:Container):Float
function getLayoutAlignmentY(target:Container):Float
function invalidateLayout(target:Container):Void
function layoutContainer(target:Container):Void
function maximumLayoutSize(target:Container):IntDimension
function minimumLayoutSize(target:Container):IntDimension
function preferredLayoutSize(target:Container):IntDimension
function removeLayoutComponent(comp:Component):Void

function new(): Void

function layoutContainer(target:Container): Void

Layouts component by center inside the given container.

target

the container to lay out

function preferredLayoutSize(target:Container): IntDimension

Calculates preferred layout size for the given container.