Pacchetto | org.osmf.layout |
Interfaccia | public interface ILayoutTarget extends IEventDispatcher |
Implementatori | LayoutTargetSprite |
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Proprietà | Definito da | ||
---|---|---|---|
displayObject : DisplayObject [sola lettura]
A reference to the display object that represents the target. | ILayoutTarget | ||
layoutMetadata : LayoutMetadata [sola lettura]
The metadata that's used to hold information about the layout
of this layout target. | ILayoutTarget | ||
measuredHeight : Number [sola lettura]
Defines the height of the element without any transformations being
applied. | ILayoutTarget | ||
measuredWidth : Number [sola lettura]
Defines the width of the element without any transformations being
applied. | ILayoutTarget |
Metodo | Definito da | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un oggetto listener di eventi con un oggetto EventDispatcher, in modo che il listener riceva la notifica di un evento. | IEventDispatcher | ||
Invia un evento nel flusso di eventi. | IEventDispatcher | ||
Verifica se per l'oggetto EventDispatcher sono presenti listener registrati per un tipo specifico di evento. | 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 | ||
Rimuove un listener dall'oggetto EventDispatcher. | IEventDispatcher | ||
Verifica se un listener di eventi è registrato con questo oggetto EventDispatcher o qualsiasi suo antenato per il tipo di evento specificato. | IEventDispatcher |
displayObject | proprietà |
displayObject:DisplayObject
[sola lettura] Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | 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.
Implementazione
public function get displayObject():DisplayObject
layoutMetadata | proprietà |
layoutMetadata:LayoutMetadata
[sola lettura] Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
The metadata that's used to hold information about the layout of this layout target. Cannot be null.
Implementazione
public function get layoutMetadata():LayoutMetadata
measuredHeight | proprietà |
measuredHeight:Number
[sola lettura] Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | 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.
Implementazione
public function get measuredHeight():Number
measuredWidth | proprietà |
measuredWidth:Number
[sola lettura] Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | 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.
Implementazione
public function get measuredWidth():Number
layout | () | metodo |
public function layout(availableWidth:Number, availableHeight:Number, deep:Boolean = true):void
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | 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.
Parametri
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 | () | metodo |
public function measure(deep:Boolean = true):void
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Method that informs the implementation that it should reassess its measuredWidth and measuredHeight fields:
Parametri
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, 02:44 PM Z