Paket | org.osmf.layout |
Gränssnitt | public interface ILayoutTarget extends IEventDispatcher |
Implementorer | LayoutTargetSprite |
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Egenskap | Definieras med | ||
---|---|---|---|
displayObject : DisplayObject [skrivskyddad]
A reference to the display object that represents the target. | ILayoutTarget | ||
layoutMetadata : LayoutMetadata [skrivskyddad]
The metadata that's used to hold information about the layout
of this layout target. | ILayoutTarget | ||
measuredHeight : Number [skrivskyddad]
Defines the height of the element without any transformations being
applied. | ILayoutTarget | ||
measuredWidth : Number [skrivskyddad]
Defines the width of the element without any transformations being
applied. | ILayoutTarget |
Metod | Definieras med | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registrerar ett händelseavlyssnarobjekt för ett EventDispatcher-objekt så att avlyssnaren får meddelanden om händelser. | IEventDispatcher | ||
Skickar en händelse till händelseflödet. | IEventDispatcher | ||
Kontrollerar om EventDispatcher-objektet har några avlyssnare registrerade för en viss typ av händelse. | IEventDispatcher | ||
Method that informs the implementation that it should update its
display to adjust to the given available width and height. | ILayoutTarget | ||
Method that informs the implementation that it should reassess its
measuredWidth and measuredHeight fields:
| ILayoutTarget | ||
Tar bort en avlyssnare från EventDispatcher-objektet. | IEventDispatcher | ||
Kontrollerar om en händelseavlyssnare är registrerad för det här EventDispatcher-objektet eller något av dess överordnade objekt för den angivna händelsetypen. | IEventDispatcher |
displayObject | egenskap |
displayObject:DisplayObject
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
A reference to the display object that represents the target. A client may use this reference to position or parent the target.
Implementering
public function get displayObject():DisplayObject
layoutMetadata | egenskap |
layoutMetadata:LayoutMetadata
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
The metadata that's used to hold information about the layout of this layout target. Cannot be null.
Implementering
public function get layoutMetadata():LayoutMetadata
measuredHeight | egenskap |
measuredHeight:Number
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Defines the height of the element without any transformations being applied. For a JPG with an original resolution of 1024x768, this would be 768 pixels. A client may use this value to (for example) keep ratio on scaling the element.
Implementering
public function get measuredHeight():Number
measuredWidth | egenskap |
measuredWidth:Number
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Defines the width of the element without any transformations being applied. For a JPG with an original resolution of 1024x768, this would be 1024 pixels. A client may use this value to (for example) keep ratio on scaling the element.
Implementering
public function get measuredWidth():Number
layout | () | metod |
public function layout(availableWidth:Number, availableHeight:Number, deep:Boolean = true):void
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Method that informs the implementation that it should update its display to adjust to the given available width and height.
Parametrar
availableWidth:Number | |
availableHeight:Number | |
deep:Boolean (default = true ) — True if the layout request is to be forwarded to
the target's potential inner layout system. The forwarding should take
place only after the target has laid itself out.
|
measure | () | metod |
public function measure(deep:Boolean = true):void
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Method that informs the implementation that it should reassess its measuredWidth and measuredHeight fields:
Parametrar
deep:Boolean (default = true ) — True if the measurement request is to be forwarded to
the target's potential inner layout system. The forwarding should take
place up front the target measuring itself.
|
Tue Jun 12 2018, 01:40 PM Z