Packagecom.addicted2flash.layout.util
Classpublic class SizeRequirement

Utility class for measuring ans sizing layouts.



Public Methods
 MethodDefined by
  
arrangeComponent(container:IUIContainer, component:IUIComponent):void
[static] Arranges a container's component.
SizeRequirement
  
getTileHeight(container:IUIContainer, h:Number, i:int, n:int):Number
[static] Returns the calculated height of a component thats desired height is set to a percentaged value.
SizeRequirement
  
getTileWidth(container:IUIContainer, w:Number, i:int, n:int):Number
[static] Returns the calculated width of a component thats desired width is set to a percentaged value.
SizeRequirement
  
[static] Measures the measuredMinimumSize and the measuredDesiredSize of a container in a horizontal oriented layout.
SizeRequirement
  
[static] Measures the measuredMinimumSize and the measuredDesiredSize of a container in a vertical oriented layout.
SizeRequirement
Method detail
arrangeComponent()method
public static function arrangeComponent(container:IUIContainer, component:IUIComponent):void

Arranges a container's component.

Parameters
container:IUIContainer — container
 
component:IUIComponent — component to be arranged
getTileHeight()method 
public static function getTileHeight(container:IUIContainer, h:Number, i:int, n:int):Number

Returns the calculated height of a component thats desired height is set to a percentaged value.

Parameters
container:IUIContainer — container
 
h:Number — total height for the components
 
i:int — index of the first component (including)
 
n:int — index of the last component (exluding)

Returns
Number — the calculated height of a component thats desired height is set to a percentaged value
getTileWidth()method 
public static function getTileWidth(container:IUIContainer, w:Number, i:int, n:int):Number

Returns the calculated width of a component thats desired width is set to a percentaged value.

Parameters
container:IUIContainer — container
 
w:Number — total width for the components
 
i:int — index of the first component (including)
 
n:int — index of the last component (exluding)

Returns
Number — the calculated width of a component thats desired width is set to a percentaged value
measureHorizontalSizes()method 
public static function measureHorizontalSizes(container:IUIContainer):void

Measures the measuredMinimumSize and the measuredDesiredSize of a container in a horizontal oriented layout.

Parameters
container:IUIContainer — container to measure
measureVerticalSizes()method 
public static function measureVerticalSizes(container:IUIContainer):void

Measures the measuredMinimumSize and the measuredDesiredSize of a container in a vertical oriented layout.

Parameters
container:IUIContainer — container to measure