⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 axes.as

📁 用于flash/flex的 as3的 2D图形图像图表的动态生成
💻 AS
字号:
package flare.vis.axis
{
	import flash.display.Sprite;
	import flare.animate.Transitioner;
	import flare.vis.Visualization;
	import flash.geom.Rectangle;
	
	/**
	 * Base class for representing metric data axes.
	 */
	public class Axes extends Sprite
	{
		/** The visualization the axes correspond to. */
		protected var _vis:Visualization;
		/** The layout bounds of the axes. */
		protected var _bounds:Rectangle;
		
		/** The visualization the axes correspond to. */
		public function get visualization():Visualization { return _vis; }
		public function set visualization(v:Visualization):void { _vis = v; }

		/** The layout bounds of the axes. If this value is not directly set,
		 *  the layout bounds of the visualization are provided. */
		public function get layoutBounds():Rectangle {
			if (_bounds != null) return _bounds;
			if (_vis != null) return _vis.bounds;
			return null;
		}
		public function set layoutBounds(b:Rectangle):void { _bounds = b; }

		/**
		 * Update these axes, performing filtering and layout as needed.
		 * @param trans a Transitioner for collecting value updates
		 * @return the input transitioner
		 */		
		public function update(trans:Transitioner=null):Transitioner
		{
			return trans;
		}
		
	} // end of class Axes
}

⌨️ 快捷键说明

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