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

📄 chartutil.as

📁 拓扑图基于SNMP数据采集模块的设计和实现
💻 AS
字号:
package com.yahoo.astra.fl.charts{	import com.yahoo.astra.fl.charts.axes.IAxis;	import com.yahoo.astra.fl.charts.axes.IStackingAxis;	import com.yahoo.astra.fl.charts.series.ISeries;	import com.yahoo.astra.fl.charts.series.IStackedSeries;	import com.yahoo.astra.fl.utils.UIComponentUtil;		/**	 * Utility functions used throughout the charting framework.	 * 	 * @author Josh Tynjala	 */	public class ChartUtil	{			//--------------------------------------	//  Public Static Methods	//--------------------------------------			/**		 * Determines if a series may be stacked on an axis. The series must		 * implement the IStackedSeries type, the axis must implement the		 * IStackingAxis type and the axis must have stackingEnabled set to		 * true.		 */		public static function isStackingAllowed(axis:IAxis, series:ISeries):Boolean		{			return (series is IStackedSeries) && (axis is IStackingAxis) && IStackingAxis(axis).stackingEnabled;		}				/**		 * Retreives every the series of the same type of the input series from the		 * chart's data provider.		 */		public static function findSeriesOfType(series:ISeries, chart:IChart):Array		{			var type:Class = UIComponentUtil.getClassDefinition(series);			var filteredSeries:Array = chart.dataProvider.filter(function(item:ISeries, index:int, source:Array):Boolean			{				var itemType:Class = UIComponentUtil.getClassDefinition(item);				return itemType == type;			});			return filteredSeries;		}	}}

⌨️ 快捷键说明

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