套件 | org.osmf.layout |
類別 | public class LayoutRendererBase |
繼承 | LayoutRendererBase EventDispatcher Object |
子類別 | LayoutRenderer |
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
屬性 | 定義自 | ||
---|---|---|---|
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
container : org.osmf.layout:ILayoutTarget
Defines the container against which the renderer will calculate the size
and position values of its targets. | LayoutRendererBase | ||
measuredHeight : Number [唯讀]
Defines the height that the layout renderer measured on its last rendering pass. | LayoutRendererBase | ||
measuredWidth : Number [唯讀]
Defines the width that the layout renderer measured on its last rendering pass. | LayoutRendererBase | ||
parent : LayoutRendererBase [唯讀]
Defines the renderer that this renderer is a child of. | LayoutRendererBase |
方法 | 定義自 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | EventDispatcher | ||
Method for adding a target to the layout renderer's list of objects
that it calculates the size and position for. | LayoutRendererBase | ||
會將事件傳送到事件流程。 | EventDispatcher | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | ||
指出物件是否有已定義的指定屬性。 | Object | ||
Method for querying if a layout target is currently a target of this
layout renderer. | LayoutRendererBase | ||
Method that will mark the renderer's last rendering pass invalid. | LayoutRendererBase | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
會從 EventDispatcher 物件移除偵聽程式。 | EventDispatcher | ||
Method for removing a target from the layout render's list of objects
that it will render. | LayoutRendererBase | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
Method ordering the direct recalculation of the position and size
of all of the renderer's assigned targets. | LayoutRendererBase | ||
會傳回指定之物件的基本值。 | Object | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | EventDispatcher |
container | 屬性 |
container:org.osmf.layout:ILayoutTarget
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Defines the container against which the renderer will calculate the size and position values of its targets. The renderer additionally manages targets being added and removed as children of the set container's display list.
實作
public function get container():org.osmf.layout:ILayoutTarget
public function set container(value:org.osmf.layout:ILayoutTarget):void
measuredHeight | 屬性 |
measuredWidth | 屬性 |
parent | 屬性 |
parent:LayoutRendererBase
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Defines the renderer that this renderer is a child of.
實作
public function get parent():LayoutRendererBase
addTarget | () | 方法 |
public final function addTarget(target:org.osmf.layout:ILayoutTarget):org.osmf.layout:ILayoutTarget
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Method for adding a target to the layout renderer's list of objects that it calculates the size and position for. Adding a target will result the associated display object to be placed on the display list of the renderer's container.
參數
target:org.osmf.layout:ILayoutTarget — The target to add.
|
org.osmf.layout:ILayoutTarget |
擲回值
IllegalOperationError — when the specified target is null, or
already a target of the renderer.
|
hasTarget | () | 方法 |
public final function hasTarget(target:org.osmf.layout:ILayoutTarget):Boolean
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Method for querying if a layout target is currently a target of this layout renderer.
參數
target:org.osmf.layout:ILayoutTarget |
Boolean — True if the specified target is a target of this renderer.
|
invalidate | () | 方法 |
public final function invalidate():void
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Method that will mark the renderer's last rendering pass invalid. At the descretion of the implementing instance, the renderer may either directly re-render, or do so at a later time.
removeTarget | () | 方法 |
public final function removeTarget(target:org.osmf.layout:ILayoutTarget):org.osmf.layout:ILayoutTarget
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Method for removing a target from the layout render's list of objects that it will render. See addTarget for more information.
參數
target:org.osmf.layout:ILayoutTarget — The target to remove.
|
org.osmf.layout:ILayoutTarget |
擲回值
Error — when the specified target is null, or
not a target of the renderer.
|
validateNow | () | 方法 |
public final function validateNow():void
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Method ordering the direct recalculation of the position and size of all of the renderer's assigned targets. The implementing class may still skip recalculation if the renderer has not been invalidated since the last rendering pass.
Tue Jun 12 2018, 03:47 PM Z