Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The ThumbnailManager caches and manages thumbnail images of attachments.
protected var audioImage:Class
cacheThumbFitSize:Point
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The preferred fit size for preview thumbs
Implementation public function get cacheThumbFitSize():Point
public function set cacheThumbFitSize(value:Point):void
protected var DYNAMIC_CACHE_MAX_MEM_CACHE_SIZE:int = 50
protected var dynamicThumbCache:OrderedDictionary
enableDynamicThumbnails:Boolean
True to enable processing of dynamic thumbs (they're still queue'ed regardless of this value).
This property can be used as the source for data binding.
Implementation public function get enableDynamicThumbnails():Boolean
public function set enableDynamicThumbnails(value:Boolean):void
protected var folderImage:Class
protected var initialJobQueue:JobQueue
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The thumbnail job queue active before dynamic thumbs are enabled.
initialQueueIsFIFO:Boolean
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
Type of initial queue (FIFO/FILO)
Implementation public function get initialQueueIsFIFO():Boolean
public function set initialQueueIsFIFO(value:Boolean):void
instance:ThumbnailManager
[read-only]
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
Returns the thumbnailManager instance; it creates one if is does not exist already.
Implementation public static function get instance():ThumbnailManager
protected var jobQueue:JobQueue
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The thumbnail job queue active after dynamic thumbs are enabled.
minThumbQueuePriority:int
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The minimum priority required to execute a queued thumb request. Requests below this priority
will remain in the queue.
Implementation public function get minThumbQueuePriority():int
public function set minThumbQueuePriority(value:int):void
pauseQueue:Boolean
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
Pauses or starts the thumbnail queue.
Implementation public function get pauseQueue():Boolean
public function set pauseQueue(value:Boolean):void
protected var pendingRequests:Dictionary
protected var pendingStaticRequests:Dictionary
protected static var smallPreviewDict:Dictionary
protected var STATIC_CACHE_MAX_MEM_CACHE_SIZE:int = 200
protected var staticThumbCache:OrderedDictionary
protected var swfImage:Class
protected var timeoutTimer:Timer
protected var videoImage:Class
public function ThumbnailManager(token:Object)
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
Constructor
Parameters protected function addToPending(thumbKey:Object, callback:Function, requests:Dictionary):void
Parameters
thumbKey :Object
callback :Function
requests :Dictionary
protected function cacheThumb(thumbCache:OrderedDictionary , callback:Function, cacheObject:CacheObject, thumbnail:Bitmap, clearPendingRequests:Boolean = true):void
Parameters
thumbCache :OrderedDictionary
callback :Function
cacheObject :CacheObject
thumbnail :Bitmap
clearPendingRequests :Boolean
(default = true
)
protected function callPendingCallbacks(thumbKey:Object, cacheObject:CacheObject, requests:Dictionary, clearPendingRequests:Boolean = true):void
Parameters
thumbKey :Object
cacheObject :CacheObject
requests :Dictionary
clearPendingRequests :Boolean
(default = true
)
public function getAspectRatio(attachment:IAttachment , mediaValue:Boolean = false, allowNaN:Boolean = false):Number
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
Returns the aspect ratio for the specified attachment.
If object is null then it returns NaN if allowNaN is true
,
or 1 if allowNaN is false
Parameters
attachment :IAttachment
— the attachment for which you are requesting the aspect ratio
mediaValue :Boolean
(default = false
)
— true if the attachment is media content (audio/video)
allowNaN :Boolean
(default = false
)
— if true
then the defaultApectRatio is allowed to be NaN
Returns protected function getDownsampledThumb(c:CacheObject, downSampleOK:Boolean):Bitmap
Parameters
c :CacheObject
downSampleOK :Boolean
Returns protected function getPredefinedThumbnail(attachment:IAttachment ):Bitmap
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
Returns the predefined thumbnail images for the specified attachment,
such as folders, SWF files, video, and audio files. If the there is no
predefined image for the attachment type, it returns null.
Parameters
Returns protected function getStaticCachedThumb(callback:Function, cacheObject:CacheObject, anySizeOK:Boolean = false, clearPendingRequests:Boolean = true):Boolean
Parameters
callback :Function
cacheObject :CacheObject
anySizeOK :Boolean
(default = false
)
clearPendingRequests :Boolean
(default = true
)
Returns protected function getThumbFromDynamicCache(thumbKey:String):Bitmap
Parameters
Returns protected function getThumbFromStaticCache(attachment:IAttachment ):Bitmap
Parameters
Returns protected function innerSetAspectRatio(attachment:IAttachment , aspectRatio:Number, currentAspectRatio:Number, mediaValue:Boolean):void
Parameters
attachment :IAttachment
aspectRatio :Number
currentAspectRatio :Number
mediaValue :Boolean
protected function isPending(thumbKey:Object, requests:Dictionary):Boolean
Parameters
thumbKey :Object
requests :Dictionary
Returns public function isSmallPreview(mimeType:String):Boolean
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
True if Acrobat generates small previews for the specified mimetype.
Parameters
Returns public function isThumbnailCached(attachment:IAttachment , width:Number, height:Number, pageNumber:uint):Boolean
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
Returns true
if the specified attachment has a dynamic thumb cached for the give width, height and pageNumber
Parameters
attachment :IAttachment
width :Number
height :Number
pageNumber :uint
Returns protected function onRootItemQueueChange(e:CollectionManagerEvent ):void
Parameters
protected function onTimeout(e:Event):void
Parameters
public function requestThumbnail(id:*, attachment:IAttachment , width:Number, height:Number, pageNumber:uint, callback:Function, downSampleOK:Boolean = true, upSampleOK:Boolean = true, queuePriority:int = 0):void
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
Requests a thumbnail to be generated that will fit into the specified width and height.
Parameters
id :*
— An id that the client can use for tracking purposes. If a request with the same id
is already queued, then the new request will supercede the old request.
attachment :IAttachment
— Specifies the attachment (an IAttachment) for which the thumbnail is generated.
width :Number
— The desired width of the thumbnail, in pixels. It must be gt; 0 and <= 2048.
height :Number
— The desired height of the thumbnail, in pixels. It must be > 0 and <= 2048.
pageNumber :uint
— The desired page number of the attachment. It must be >= 1.
callback :Function
— A callback function that will be called when the thumbnail has been generated.
It has the following signature and parameters:
callback(id: width:Number, height:Number, thumbnail:Bitmap)
callback parameters :
Parameter:Type Value id:String the value of the id param passed to requestThumbnail width:Number the value of the width parameter passed to requestThumbnail height:Number the value of the height param to requestThumbnail pageNumber:uint the value of the pageNumber param to requestThumbnail thumbnail:Bitmap the generated thumbnail
downSampleOK :Boolean
(default = true
)
upSampleOK :Boolean
(default = true
)
queuePriority :int
(default = 0
)
public function setAspectRatio(attachment:IAttachment , aspectRatio:Number, mediaValue:Boolean = false, forceUpdate:Boolean = false):void
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
Sets the aspect ratio for the specified attachment.
Parameters
attachment :IAttachment
— The attachment
aspectRatio :Number
— The aspect ratio
mediaValue :Boolean
(default = false
)
— True if the attachment is media content (audio/video)
forceUpdate :Boolean
(default = false
)
— True to force an update of the aspectRatio
protected function startJobs():void
protected function startTimeOutTimer():void
protected function validateThumbSize(value:Number, downSampleOK:Boolean = true):Number
Parameters
value :Number
downSampleOK :Boolean
(default = true
)
Returns protected function wrapBitmapData(bitmapData:BitmapData):Bitmap
Parameters
Returns Event Object Type: com.adobe.portfolio.events.ThumbnailManagerEvent
ThumbnailManagerEvent.type property = com.adobe.portfolio.events.ThumbnailManagerEvent
Dispatched when the aspectRatio of an attachment changes.
public static const ANY_THUMB_PRIORITY:int = -2.147483648E9
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The priority that allows any thumbnail job to be executed.
public static const DYNAMIC_THUMB_PRIORITY:int = 0
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The nominal priority of dynamic thumb generation
public static const IDLE_THUMB_PRIORITY:int = -1
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The nominal priority of idle thumb generation
public static const PREVIEW_THUMB_PRIORITY:int = 10
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The nominal priority of preview thumb requests
public static const SMALL_PREVIEW_THUMBSIZE:int = 512
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The size of "small" previews supplied by Acrobat.
public static const SMALL_THUMB_FIT_HEIGHT:int = 128
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The fit height of static cached thumbnails
public static const SMALL_THUMB_FIT_WIDTH:int = 128
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The fit width of static cached thumbnails
public static const STATIC_THUMB_PRIORITY:int = 1
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The nominal priority of static thumb requests
Copyright Adobe Systems Incorporated, all rights reserved, for internal use only Mon Apr 25 2011, 05:54 PM -07:00