| Pakiet | org.osmf.layout |
| Interfejs | public interface ILayoutTarget extends IEventDispatcher |
| Implementory | LayoutTargetSprite |
| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
| displayObject : DisplayObject [tylko do odczytu]
A reference to the display object that represents the target. | ILayoutTarget | ||
| layoutMetadata : LayoutMetadata [tylko do odczytu]
The metadata that's used to hold information about the layout
of this layout target. | ILayoutTarget | ||
| measuredHeight : Number [tylko do odczytu]
Defines the height of the element without any transformations being
applied. | ILayoutTarget | ||
| measuredWidth : Number [tylko do odczytu]
Defines the width of the element without any transformations being
applied. | ILayoutTarget | ||
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Rejestruje obiekt detektora zdarzeń w obiekcie EventDispatcher, dzięki czemu detektor będzie otrzymywał powiadomienia o zdarzeniu. | IEventDispatcher | |
![]() |
Wywołuje zdarzenie, tj. kieruje je do przepływu zdarzeń. | IEventDispatcher | |
![]() |
Sprawdza, czy obiekt EventDispatcher zawiera jakiekolwiek detektory zarejestrowane dla konkretnego typu zdarzeń. | 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 | ||
![]() |
Usuwa detektor z obiektu EventDispatcher. | IEventDispatcher | |
![]() |
Sprawdza, czy detektor zdarzeń określonego typu jest zarejestrowany w tym obiekcie EventDispatcher lub jego elementach macierzystych. | IEventDispatcher | |
displayObject | właściwość |
displayObject:DisplayObject [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | 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.
Implementacja
public function get displayObject():DisplayObjectlayoutMetadata | właściwość |
layoutMetadata:LayoutMetadata [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
The metadata that's used to hold information about the layout of this layout target. Cannot be null.
Implementacja
public function get layoutMetadata():LayoutMetadatameasuredHeight | właściwość |
measuredHeight:Number [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | 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.
Implementacja
public function get measuredHeight():NumbermeasuredWidth | właściwość |
measuredWidth:Number [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | 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.
Implementacja
public function get measuredWidth():Numberlayout | () | metoda |
public function layout(availableWidth:Number, availableHeight:Number, deep:Boolean = true):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | 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.
Parametry
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 | () | metoda |
public function measure(deep:Boolean = true):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Method that informs the implementation that it should reassess its measuredWidth and measuredHeight fields:
Parametry
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, 12:06 PM Z
Ukryj dziedziczone metody publiczne
Pokaż dziedziczone metody publiczne