GODPAPER | All Packages | All Classes | Index | Frames No Frames |
ITrimmedVirtualLayout

Package | feathers.layout
Interface | public 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
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined 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
|  | typicalItemHeight : Number The height, in pixels, of a "typical" item that is used to virtually fill in blanks for the layout. | IVirtualLayout
|  | typicalItemWidth : Number The width, in pixels, of a "typical" item that is used to virtually fill in blanks for the layout. | IVirtualLayout
|  | useVirtualLayout : Boolean Determines if virtual layout can be used. | IVirtualLayout

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | addEventListener(type:String, listener:Function):void | IFeathersEventDispatcher
|  | dispatchEvent(event:Event):void | IFeathersEventDispatcher
|  | dispatchEventWith(type:String, bubbles:Boolean = false, data:Object = null):void | IFeathersEventDispatcher
|  | 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
|  | 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
|  | hasEventListener(type:String):Boolean | IFeathersEventDispatcher
|  | layout(items:Vector.<DisplayObject>, viewPortBounds:ViewPortBounds = null, result:LayoutBoundsResult = null):LayoutBoundsResult Positions (and possibly resizes) the supplied items within the optional bounds argument. | ILayout
|  | 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
|  | removeEventListener(type:String, listener:Function):void | IFeathersEventDispatcher
|  | removeEventListeners(type:String = null):void | IFeathersEventDispatcher

Property Detail

afterVirtualizedItemCount | property

`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`

beforeVirtualizedItemCount | property |

`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`

Thu Jan 16 2014, 01:11 PM +08:00