Packageorg.aswing
Classpublic class CenterLayout
InheritanceCenterLayout Inheritance EmptyLayout

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



Public Methods
 MethodDefined by
  
CenterLayout
 Inherited
addLayoutComponent(comp:Component, constraints:Object):void
Do nothing Adds the specified component to the layout, using the specified constraint object.
EmptyLayout
 Inherited
return 0
EmptyLayout
 Inherited
return 0
EmptyLayout
 Inherited
do nothing
EmptyLayout
  
Layouts component by center inside the given container.
CenterLayout
 Inherited
return IntDimension.createBigDimension();
EmptyLayout
 Inherited
new IntDimension(0, 0);
EmptyLayout
  
Calculates preferred layout size for the given container.
CenterLayout
 Inherited
Do nothing Removes the specified component from the layout.
EmptyLayout
Constructor detail
CenterLayout()constructor
public function CenterLayout()
Method detail
layoutContainer()method
public override function layoutContainer(target:Container):void

Layouts component by center inside the given container.

Parameters
target:Container — the container to lay out
preferredLayoutSize()method 
public override function preferredLayoutSize(target:Container):IntDimension

Calculates preferred layout size for the given container.

Parameters
target:Container

Returns
IntDimension