Packagefeathers.layout
Interfacepublic interface ITrimmedVirtualLayout extends IVirtualLayout, ILayout, IFeathersEventDispatcher
Implementors HorizontalLayout, VerticalLayout

Optimizes a virtual layout by skipping a specific number of items before and after the set that is passed to layout().



Public Properties
 PropertyDefined By
  afterVirtualizedItemCount : int
The number of virtualized items that appear after the items passed to layout().
ITrimmedVirtualLayout
  beforeVirtualizedItemCount : int
The number of virtualized items that appear before the items passed to layout().
ITrimmedVirtualLayout
 InheritedtypicalItemHeight : Number
The height, in pixels, of a "typical" item that is used to virtually fill in blanks for the layout.
IVirtualLayout
 InheritedtypicalItemWidth : Number
The width, in pixels, of a "typical" item that is used to virtually fill in blanks for the layout.
IVirtualLayout
 InheriteduseVirtualLayout : Boolean
Determines if virtual layout can be used.
IVirtualLayout
Public Methods
 MethodDefined By
 Inherited
addEventListener(type:String, listener:Function):void
IFeathersEventDispatcher
 Inherited
dispatchEvent(event:Event):void
IFeathersEventDispatcher
 Inherited
dispatchEventWith(type:String, bubbles:Boolean = false, data:Object = null):void
IFeathersEventDispatcher
 Inherited
getScrollPositionForIndex(index:int, items:Vector.<DisplayObject>, x:Number, y:Number, width:Number, height:Number, result:Point = null):Point
Using the item dimensions, calculates a scroll position that will ensure that the item at a given index will be visible within the specified bounds.
ILayout
 Inherited
getVisibleIndicesAtScrollPosition(scrollX:Number, scrollY:Number, width:Number, height:Number, itemCount:int, result:Vector.<int> = null):Vector.<int>
Determines which indices are visible with the specified view port bounds and scroll position.
IVirtualLayout
 Inherited
hasEventListener(type:String):Boolean
IFeathersEventDispatcher
 Inherited
layout(items:Vector.<DisplayObject>, viewPortBounds:ViewPortBounds = null, result:LayoutBoundsResult = null):LayoutBoundsResult
Positions (and possibly resizes) the supplied items within the optional bounds argument.
ILayout
 Inherited
measureViewPort(itemCount:int, viewPortBounds:ViewPortBounds = null, result:Point = null):Point
Using the typical item bounds and suggested bounds, returns a set of calculated dimensions for the view port.
IVirtualLayout
 Inherited
removeEventListener(type:String, listener:Function):void
IFeathersEventDispatcher
 Inherited
removeEventListeners(type:String = null):void
IFeathersEventDispatcher
Property Detail
afterVirtualizedItemCountproperty
afterVirtualizedItemCount:int

The number of virtualized items that appear after the items passed to layout(). Allows the array of items to be smaller than the full size. Does not work if the layout has variable item dimensions.


Implementation
    public function get afterVirtualizedItemCount():int
    public function set afterVirtualizedItemCount(value:int):void
beforeVirtualizedItemCountproperty 
beforeVirtualizedItemCount:int

The number of virtualized items that appear before the items passed to layout(). Allows the array of items to be smaller than the full size. Does not work if the layout has variable item dimensions.


Implementation
    public function get beforeVirtualizedItemCount():int
    public function set beforeVirtualizedItemCount(value:int):void