Pakket | org.osmf.layout |
Interface | public interface ILayoutTarget extends IEventDispatcher |
Geïmplementeerd door | LayoutTargetSprite |
Taalversie: | ActionScript 3.0 |
Productversie: | OSMF 1.0 |
Runtimeversies: | Flash Player 10, AIR 1.5 |
Eigenschap | Gedefinieerd door | ||
---|---|---|---|
displayObject : DisplayObject [alleen-lezen]
A reference to the display object that represents the target. | ILayoutTarget | ||
layoutMetadata : LayoutMetadata [alleen-lezen]
The metadata that's used to hold information about the layout
of this layout target. | ILayoutTarget | ||
measuredHeight : Number [alleen-lezen]
Defines the height of the element without any transformations being
applied. | ILayoutTarget | ||
measuredWidth : Number [alleen-lezen]
Defines the width of the element without any transformations being
applied. | ILayoutTarget |
Methode | Gedefinieerd door | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registreert een gebeurtenislistenerobject bij een object EventDispatcher, zodat de listener een melding van een gebeurtenis ontvangt. | IEventDispatcher | ||
Verzendt een gebeurtenis naar de gebeurtenisstroom. | IEventDispatcher | ||
Controleert of het object EventDispatcher listeners heeft geregistreerd voor een specifiek type gebeurtenis. | 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 | ||
Verwijdert een listener uit het object EventDispatcher. | IEventDispatcher | ||
Controleert of een gebeurtenislistener is geregistreerd bij dit object EventDispatcher of een van de voorouders voor het opgegeven type gebeurtenis. | IEventDispatcher |
displayObject | eigenschap |
displayObject:DisplayObject
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | OSMF 1.0 |
Runtimeversies: | 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.
Implementatie
public function get displayObject():DisplayObject
layoutMetadata | eigenschap |
layoutMetadata:LayoutMetadata
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | OSMF 1.0 |
Runtimeversies: | Flash Player 10, AIR 1.5 |
The metadata that's used to hold information about the layout of this layout target. Cannot be null.
Implementatie
public function get layoutMetadata():LayoutMetadata
measuredHeight | eigenschap |
measuredHeight:Number
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | OSMF 1.0 |
Runtimeversies: | 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.
Implementatie
public function get measuredHeight():Number
measuredWidth | eigenschap |
measuredWidth:Number
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | OSMF 1.0 |
Runtimeversies: | 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.
Implementatie
public function get measuredWidth():Number
layout | () | methode |
public function layout(availableWidth:Number, availableHeight:Number, deep:Boolean = true):void
Taalversie: | ActionScript 3.0 |
Productversie: | OSMF 1.0 |
Runtimeversies: | 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.
Parameters
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 | () | methode |
public function measure(deep:Boolean = true):void
Taalversie: | ActionScript 3.0 |
Productversie: | OSMF 1.0 |
Runtimeversies: | Flash Player 10, AIR 1.5 |
Method that informs the implementation that it should reassess its measuredWidth and measuredHeight fields:
Parameters
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.
|
Wed Jun 13 2018, 11:42 AM Z