패키지 | org.osmf.layout |
인터페이스 | public interface ILayoutTarget extends IEventDispatcher |
구현자 | LayoutTargetSprite |
언어 버전: | ActionScript 3.0 |
제품 버전: | OSMF 1.0 |
런타임 버전: | Flash Player 10, AIR 1.5 |
속성 | 정의 주체 | ||
---|---|---|---|
displayObject : DisplayObject [읽기 전용]
A reference to the display object that represents the target. | ILayoutTarget | ||
layoutMetadata : LayoutMetadata [읽기 전용]
The metadata that's used to hold information about the layout
of this layout target. | ILayoutTarget | ||
measuredHeight : Number [읽기 전용]
Defines the height of the element without any transformations being
applied. | ILayoutTarget | ||
measuredWidth : Number [읽기 전용]
Defines the width of the element without any transformations being
applied. | ILayoutTarget |
메서드 | 정의 주체 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다. | IEventDispatcher | ||
이벤트를 이벤트 흐름으로 전달합니다. | IEventDispatcher | ||
EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다. | 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 | ||
EventDispatcher 객체에서 리스너를 제거합니다. | IEventDispatcher | ||
이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다. | IEventDispatcher |
displayObject | 속성 |
displayObject:DisplayObject
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | OSMF 1.0 |
런타임 버전: | 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.
구현
public function get displayObject():DisplayObject
layoutMetadata | 속성 |
layoutMetadata:LayoutMetadata
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | OSMF 1.0 |
런타임 버전: | Flash Player 10, AIR 1.5 |
The metadata that's used to hold information about the layout of this layout target. Cannot be null.
구현
public function get layoutMetadata():LayoutMetadata
measuredHeight | 속성 |
measuredHeight:Number
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | OSMF 1.0 |
런타임 버전: | 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.
구현
public function get measuredHeight():Number
measuredWidth | 속성 |
measuredWidth:Number
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | OSMF 1.0 |
런타임 버전: | 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.
구현
public function get measuredWidth():Number
layout | () | 메서드 |
public function layout(availableWidth:Number, availableHeight:Number, deep:Boolean = true):void
언어 버전: | ActionScript 3.0 |
제품 버전: | OSMF 1.0 |
런타임 버전: | 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.
매개 변수
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 | () | 메서드 |
public function measure(deep:Boolean = true):void
언어 버전: | ActionScript 3.0 |
제품 버전: | OSMF 1.0 |
런타임 버전: | Flash Player 10, AIR 1.5 |
Method that informs the implementation that it should reassess its measuredWidth and measuredHeight fields:
매개 변수
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, 03:17 PM Z