ilayoutmode.as

来自「拓扑图基于SNMP数据采集模块的设计和实现」· AS 代码 · 共 36 行

AS
36
字号
package com.yahoo.astra.layout.modes{	import flash.events.IEventDispatcher;	import flash.geom.Rectangle;		/**	 * Defines the properties and functions required	 * for layout modes used by ILayoutContainer.	 * 	 * @author Josh Tynjala	 */	public interface ILayoutMode extends IEventDispatcher	{			//--------------------------------------	//  Methods	//--------------------------------------			/**		 * The DisplayObjects in the input parameter will be positioned and sized		 * based on a specified rectangle. There is no requirement that the		 * display objects remain entirely within the rectangle.		 * 		 * <p>Returns the actual rectangular region in which the laid out		 * children will appear. This may be larger or smaller than the		 * suggested rectangle. This returned value is expected to be used by		 * container components to determine if scrollbars or other navigation		 * controls are needed.</p>		 * 		 * @param displayObjects	An Array of DisplayObjects to be laid out.		 * @param bounds			The rectangular region in which the display objects should be placed.		 * @return					The actual region in which the display objects are contained.		 */		function layoutObjects(displayObjects:Array, bounds:Rectangle):Rectangle;	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?