| Package | org.aswing |
| Class | public class CenterLayout |
| Inheritance | CenterLayout EmptyLayout |
LayoutManager aligned the single contained component by the container's center.
| Method | Defined by | ||
|---|---|---|---|
| CenterLayout | |||
![]() |
addLayoutComponent(comp:Component, constraints:Object):void
Do nothing
Adds the specified component to the layout, using the specified
constraint object.
| EmptyLayout | |
![]() |
getLayoutAlignmentX(target:Container):Number
return 0
| EmptyLayout | |
![]() |
getLayoutAlignmentY(target:Container):Number
return 0
| EmptyLayout | |
![]() |
invalidateLayout(target:Container):void
do nothing
| EmptyLayout | |
|
layoutContainer(target:Container):void
Layouts component by center inside the given container.
| CenterLayout | ||
![]() |
return IntDimension.createBigDimension();
| EmptyLayout | |
![]() |
new IntDimension(0, 0);
| EmptyLayout | |
|
Calculates preferred layout size for the given container.
| CenterLayout | ||
![]() |
removeLayoutComponent(comp:Component):void
Do nothing
Removes the specified component from the layout.
| EmptyLayout | |
| CenterLayout | () | constructor |
public function CenterLayout()
| layoutContainer | () | method |
public override function layoutContainer(target:Container):voidLayouts component by center inside the given container.
Parameterstarget:Container — the container to lay out
|
| preferredLayoutSize | () | method |
public override function preferredLayoutSize(target:Container):IntDimensionCalculates preferred layout size for the given container.
Parameterstarget:Container |
IntDimension |