Packagecom.adobe.portfolio.layouts
Classpublic class CardLayoutHelper
InheritanceCardLayoutHelper Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
  enableIdle : Boolean
CardLayoutHelper
  pendingFade : Boolean
CardLayoutHelper
Protected Properties
 PropertyDefined By
  attachmentProperties : Dictionary
CardLayoutHelper
  autoListen : AutoListen
CardLayoutHelper
  cardLayout : ICardLayout
CardLayoutHelper
  cardProvider : ICardProvider
CardLayoutHelper
  idleDelay : int = 2000
CardLayoutHelper
  idleItems : Array
CardLayoutHelper
  idleTimer : Timer
CardLayoutHelper
  layoutEffect : LayoutEffect
CardLayoutHelper
  target : GroupBase
[read-only]
CardLayoutHelper
  thumbFitSize : Point
CardLayoutHelper
  thumbnailMgr : ThumbnailManager
CardLayoutHelper
Public Methods
 MethodDefined By
  
CardLayoutHelper
  
CardLayoutHelper
  
elementIntersectsRect(element:IVisualElement, rect:Rectangle):Boolean
CardLayoutHelper
  
CardLayoutHelper
  
fadeInCards(delay:Number, duration:Number = 50):void
CardLayoutHelper
  
findCardsThatIntersect(rect:Rectangle):Vector.<int>
CardLayoutHelper
  
getAlpha(card:ISimpleCard):Number
CardLayoutHelper
  
getCard(index:int):ISimpleCard
CardLayoutHelper
  
getCurrentIndex(attachment:Object, dataProvider:IList = null):int
CardLayoutHelper
  
CardLayoutHelper
  
getLayoutElement(index:int):IVisualElement
CardLayoutHelper
  
getLayoutRect(element:IVisualElement):Rectangle
CardLayoutHelper
  
idleCardsAroundFocus(dataProvider:IList, focusAttachment:IAttachment, delta:int):void
CardLayoutHelper
  
CardLayoutHelper
  
CardLayoutHelper
  
CardLayoutHelper
  
resizeCachedThumbs(dataProvider:IList, width:Number, height:Number):void
CardLayoutHelper
  
scrollRect(target:GroupBase):Rectangle
CardLayoutHelper
  
toString():String
[override]
CardLayoutHelper
Protected Methods
 MethodDefined By
  
handleItemIdle(attachment:IAttachment):void
CardLayoutHelper
  
onElementDone(target:Object):void
CardLayoutHelper
  
onIdleTime(e:TimerEvent):void
CardLayoutHelper
  
preloadThumb(attachment:IAttachment, fitSize:Point):void
CardLayoutHelper
  
CardLayoutHelper
Protected Constants
 ConstantDefined By
  collectionMgr : CollectionManager
[static]
CardLayoutHelper
  logger : ILogger
[static]
CardLayoutHelper
Property Detail
attachmentPropertiesproperty
protected var attachmentProperties:Dictionary

autoListenproperty 
protected var autoListen:AutoListen

cardLayoutproperty 
protected var cardLayout:ICardLayout

cardProviderproperty 
protected var cardProvider:ICardProvider

enableIdleproperty 
enableIdle:Boolean


Implementation
    public function get enableIdle():Boolean
    public function set enableIdle(value:Boolean):void
idleDelayproperty 
protected var idleDelay:int = 2000

idleItemsproperty 
protected var idleItems:Array

idleTimerproperty 
protected var idleTimer:Timer

layoutEffectproperty 
protected var layoutEffect:LayoutEffect

pendingFadeproperty 
pendingFade:Boolean


Implementation
    public function get pendingFade():Boolean
    public function set pendingFade(value:Boolean):void
targetproperty 
target:GroupBase  [read-only]


Implementation
    protected function get target():GroupBase
thumbFitSizeproperty 
thumbFitSize:Point


Implementation
    protected function get thumbFitSize():Point
    protected function set thumbFitSize(value:Point):void
thumbnailMgrproperty 
protected var thumbnailMgr:ThumbnailManager

Constructor Detail
CardLayoutHelper()Constructor
public function CardLayoutHelper(cardLayout:ICardLayout)



Parameters
cardLayout:ICardLayout
Method Detail
dataProviderIsCurrent()method
public function dataProviderIsCurrent():Boolean

Returns
Boolean
elementIntersectsRect()method 
public function elementIntersectsRect(element:IVisualElement, rect:Rectangle):Boolean

Parameters

element:IVisualElement
 
rect:Rectangle

Returns
Boolean
enableThumbnailGeneration()method 
public function enableThumbnailGeneration():void

fadeInCards()method 
public function fadeInCards(delay:Number, duration:Number = 50):void

Parameters

delay:Number
 
duration:Number (default = 50)

findCardsThatIntersect()method 
public function findCardsThatIntersect(rect:Rectangle):Vector.<int>

Parameters

rect:Rectangle

Returns
Vector.<int>
getAlpha()method 
public function getAlpha(card:ISimpleCard):Number

Parameters

card:ISimpleCard

Returns
Number
getCard()method 
public function getCard(index:int):ISimpleCard

Parameters

index:int

Returns
ISimpleCard
getCurrentIndex()method 
public function getCurrentIndex(attachment:Object, dataProvider:IList = null):int

Parameters

attachment:Object
 
dataProvider:IList (default = null)

Returns
int
getDataProvider()method 
public function getDataProvider():IList

Returns
IList
getLayoutElement()method 
public function getLayoutElement(index:int):IVisualElement

Parameters

index:int

Returns
IVisualElement
getLayoutRect()method 
public function getLayoutRect(element:IVisualElement):Rectangle

Parameters

element:IVisualElement

Returns
Rectangle
handleItemIdle()method 
protected function handleItemIdle(attachment:IAttachment):void

Parameters

attachment:IAttachment

idleCardsAroundFocus()method 
public function idleCardsAroundFocus(dataProvider:IList, focusAttachment:IAttachment, delta:int):void

Parameters

dataProvider:IList
 
focusAttachment:IAttachment
 
delta:int

invalidateTarget()method 
public function invalidateTarget():void

isPendingOrFading()method 
public function isPendingOrFading():Boolean

Returns
Boolean
onElementDone()method 
protected function onElementDone(target:Object):void

Parameters

target:Object

onIdleTime()method 
protected function onIdleTime(e:TimerEvent):void

Parameters

e:TimerEvent

preloadThumb()method 
protected function preloadThumb(attachment:IAttachment, fitSize:Point):void

Parameters

attachment:IAttachment
 
fitSize:Point

resetIdleItems()method 
public function resetIdleItems():void

resizeCachedThumbs()method 
public function resizeCachedThumbs(dataProvider:IList, width:Number, height:Number):void

Parameters

dataProvider:IList
 
width:Number
 
height:Number

saveAlpha()method 
protected function saveAlpha(card:ISimpleCard):void

Parameters

card:ISimpleCard

scrollRect()method 
public function scrollRect(target:GroupBase):Rectangle

Parameters

target:GroupBase

Returns
Rectangle
toString()method 
override public function toString():String

Returns
String
Constant Detail
collectionMgrConstant
protected static const collectionMgr:CollectionManager

loggerConstant 
protected static const logger:ILogger