axes.as

来自「用于flash/flex的 as3的 2D图形图像图表的动态生成」· AS 代码 · 共 42 行

AS
42
字号
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 + =
减小字号Ctrl + -
显示快捷键?