Packageorg.aswing
Interfacepublic interface LayoutManager
ImplementorsEmptyLayout, Form, FormRow, JList, JTable

Defines an interface for classes that know how to layout Containers based on a layout constraints object.

See also

Component
Container


Public Methods
 MethodDefined by
  
addLayoutComponent(comp:Component, constraints:Object):void
Adds the specified component to the layout, using the specified constraint object.
LayoutManager
  
Returns the alignment along the x axis.
LayoutManager
  
Returns the alignment along the y axis.
LayoutManager
  
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.
LayoutManager
  
Lays out the specified container.
LayoutManager
  
Calculates the maximum size dimensions for the specified container, given the components it contains.
LayoutManager
  
Calculates the minimum size dimensions for the specified container, given the components it contains.
LayoutManager
  
Calculates the preferred size dimensions for the specified container, given the components it contains.
LayoutManager
  
Removes the specified component from the layout.
LayoutManager
Method detail
addLayoutComponent()method
public function addLayoutComponent(comp:Component, constraints:Object):void

Adds the specified component to the layout, using the specified constraint object.

Parameters
comp:Component — the component to be added
 
constraints:Object — where/how the component is added to the layout.
getLayoutAlignmentX()method 
public function getLayoutAlignmentX(target:Container):Number

Returns the alignment along the x axis. This specifies how the component would like to be aligned relative to other components. The value should be a number between 0 and 1 where 0 represents alignment along the origin, 1 is aligned the furthest away from the origin, 0.5 is centered, etc.

Parameters
target:Container

Returns
Number
getLayoutAlignmentY()method 
public function getLayoutAlignmentY(target:Container):Number

Returns the alignment along the y axis. This specifies how the component would like to be aligned relative to other components. The value should be a number between 0 and 1 where 0 represents alignment along the origin, 1 is aligned the furthest away from the origin, 0.5 is centered, etc.

Parameters
target:Container

Returns
Number
invalidateLayout()method 
public function invalidateLayout(target:Container):void

Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.

Parameters
target:Container
layoutContainer()method 
public function layoutContainer(target:Container):void

Lays out the specified container.

Parameters
target:Container — the container to be laid out
maximumLayoutSize()method 
public function maximumLayoutSize(target:Container):IntDimension

Calculates the maximum size dimensions for the specified container, given the components it contains.

Parameters
target:Container — the component to be laid out

Returns
IntDimension

See also

minimumLayoutSize()method 
public function minimumLayoutSize(target:Container):IntDimension

Calculates the minimum size dimensions for the specified container, given the components it contains.

Parameters
target:Container — the component to be laid out

Returns
IntDimension

See also

preferredLayoutSize()method 
public function preferredLayoutSize(target:Container):IntDimension

Calculates the preferred size dimensions for the specified container, given the components it contains.

Parameters
target:Container — the container to be laid out

Returns
IntDimension

See also

removeLayoutComponent()method 
public function removeLayoutComponent(comp:Component):void

Removes the specified component from the layout.

Parameters
comp:Component — the component to be removed