Packagecom.adobe.portfolio.layouts
Classpublic class CardDistributor
InheritanceCardDistributor Inheritance Object



Public Properties
 PropertyDefined By
  cardAngle : Number
CardDistributor
Protected Properties
 PropertyDefined By
  autoListen : AutoListen
CardDistributor
  autoPositionCardSize : Number
CardDistributor
  autoPositionCardSizeDiameter : Number
CardDistributor
  cardProperties : ICardProperties
CardDistributor
  cardsChangedMap : Dictionary
CardDistributor
  gridPoints : Array
CardDistributor
Public Methods
 MethodDefined By
  
CardDistributor
  
ensureAllPositionsAreValid(collection:IList):void
CardDistributor
Protected Methods
 MethodDefined By
  
getCardPositions(collection:IList, setPositions:Array, unsetPositions:Array):void
CardDistributor
  
getCardSize(sizeName:String):Number
[static]
CardDistributor
  
CardDistributor
  
onCollectionChange(event:CollectionEvent):void
An event listener to respond to events from the current collection.
CardDistributor
Property Detail
autoListenproperty
protected var autoListen:AutoListen

autoPositionCardSizeproperty 
protected var autoPositionCardSize:Number

autoPositionCardSizeDiameterproperty 
protected var autoPositionCardSizeDiameter:Number

cardAngleproperty 
cardAngle:Number


Implementation
    public function get cardAngle():Number
    public function set cardAngle(value:Number):void
cardPropertiesproperty 
protected var cardProperties:ICardProperties

cardsChangedMapproperty 
protected var cardsChangedMap:Dictionary

gridPointsproperty 
protected var gridPoints:Array

Constructor Detail
CardDistributor()Constructor
public function CardDistributor(cardProperties:ICardProperties)



Parameters
cardProperties:ICardProperties
Method Detail
ensureAllPositionsAreValid()method
public function ensureAllPositionsAreValid(collection:IList):void

Parameters

collection:IList

getCardPositions()method 
protected function getCardPositions(collection:IList, setPositions:Array, unsetPositions:Array):void

Parameters

collection:IList — an Array that is filled with the attachments that have their position set
 
setPositions:Array — an Array that is filled with the attachments that have NOT had their position set
 
unsetPositions:Array

getCardSize()method 
protected static function getCardSize(sizeName:String):Number

Parameters

sizeName:String

Returns
Number
initAutoPositionCardSize()method 
protected function initAutoPositionCardSize():Boolean

Returns
Boolean
onCollectionChange()method 
protected function onCollectionChange(event:CollectionEvent):void

An event listener to respond to events from the current collection.

Parameters

event:CollectionEvent