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

📄 cartesianchart.as

📁 拓扑图基于SNMP数据采集模块的设计和实现
💻 AS
📖 第 1 页 / 共 4 页
字号:
	/**	 * The TextFormat object to use to render the vertical axis title label.     *     * @default TextFormat("_sans", 11, 0x000000, false, false, false, '', '', TextFormatAlign.LEFT, 0, 0, 0, 0)	 * @deprecated	 */	[Style(name="verticalAxisTitleTextFormat", type="TextFormat")]		//-- DEPRECATED Horizontal Axis styles    	/**	 * If false, the horizontal axis is not drawn. Titles, labels, ticks, and grid	 * lines may still be drawn, however, so you must specifically hide each	 * item if nothing should be drawn.	 * 	 * @default true	 * @deprecated	 */	[Style(name="showHorizontalAxis", type="Boolean")]    	/**	 * The line weight, in pixels, for the horizontal axis.	 * 	 * @default 1	 * @deprecated	 */	[Style(name="horizontalAxisWeight", type="int")]    	/**	 * The line color for the horizontal axis.	 * 	 * @default #888a85	 * @deprecated	 */	[Style(name="horizontalAxisColor", type="uint")]        //-- Labels - Horizontal Axis    	/**	 * If true, labels will be displayed on the horizontal axis.	 * 	 * @default true	 * @deprecated	 */	[Style(name="showHorizontalAxisLabels", type="Boolean")]    	/**	 * The distance, in pixels, between a label and the horizontal axis.	 * 	 * @default 2	 * @deprecated	 */	[Style(name="horizontalAxisLabelDistance", type="Number")]    	/**	 * Defines the TextFormat used by labels on the horizontal axis. If null,	 * the <code>textFormat</code> style will be used.	 * 	 * @default null	 * @deprecated	 */	[Style(name="horizontalAxisTextFormat", type="TextFormat")]    	/** 	 * If true, labels that overlap previously drawn labels on the axis will be	 * hidden. The first and last labels on the axis will always be drawn.	 * 	 * @default true	 * @deprecated	 */	[Style(name="horizontalAxisHideOverlappingLabels", type="Boolean")]    	/** 	 * The angle, in degrees, of the labels on the horizontal axis. May be a value	 * between <code>-90</code> and <code>90</code>. The font must be embedded	 * in the SWF and the <code>embedFonts</code> style on the chart must be set	 * to <code>true</code> before labels may be rotated. If these conditions	 * aren't met, the labels will not be rotated.	 * 	 * @default 0	 * @deprecated	 */	[Style(name="horizontalAxisLabelRotation", type="Number")]        //-- Grid - Horizontal Axis    	/**	 * An Array of <code>uint</code> color values that is used to draw	 * alternating fills between the horizontal axis' grid lines.	 * 	 * @default []	 * @deprecated	 */	[Style(name="horizontalAxisGridFillColors", type="Array")]    	/**	 * An Array of alpha values (in the range of 0 to 1) that is used to draw	 * alternating fills between the horizontal axis' grid lines.	 * 	 * @default []	 * @deprecated	 */	[Style(name="horizontalAxisGridFillAlphas", type="Array")]        //-- DEPRECATED Grid Lines - Horizontal Axis    	/**	 * If true, grid lines will be displayed on the horizontal axis.	 * 	 * @default false	 * @deprecated	 */	[Style(name="showHorizontalAxisGridLines", type="Boolean")]    	/**	 * The line weight, in pixels, for the grid lines on the horizontal axis.	 * 	 * @default 1	 * @deprecated	 */	[Style(name="horizontalAxisGridLineWeight", type="int")]    	/**	 * The line color for the grid lines on the horizontal axis.	 * 	 * @default #babdb6	 * @deprecated	 */	[Style(name="horizontalAxisGridLineColor", type="uint")]        //-- Minor Grid Lines - Horizontal Axis    	/**	 * If true, minor grid lines will be displayed on the horizontal axis.	 * 	 * @default false	 * @deprecated	 */	[Style(name="showHorizontalAxisMinorGridLines", type="Boolean")]    	/**	 * The line weight, in pixels, for the minor grid lines on the horizontal axis.	 * 	 * @default 1	 * @deprecated	 */	[Style(name="horizontalAxisMinorGridLineWeight", type="int")]    	/**	 * The line color for the minor grid lines on the horizontal axis.	 * 	 * @default #eeeeec	 * @deprecated	 */	[Style(name="horizontalAxisMinorGridLineColor", type="uint")]    	//-- Ticks - Horizontal Axis    	/**	 * If true, ticks will be displayed on the horizontal axis.	 * 	 * @default true	 * @deprecated	 */	[Style(name="showHorizontalAxisTicks", type="Boolean")]    	/**	 * The line weight, in pixels, for the ticks on the horizontal axis.	 * 	 * @default 1	 * @deprecated	 */	[Style(name="horizontalAxisTickWeight", type="int")]    	/**	 * The line color for the ticks on the horizontal axis.	 * 	 * @default #888a85	 * @deprecated	 */	[Style(name="horizontalAxisTickColor", type="uint")]    	/**	 * The length, in pixels, of the ticks on the horizontal axis.	 * 	 * @default 4	 * @deprecated	 */	[Style(name="horizontalAxisTickLength", type="Number")]		/**	 * The position of the ticks on the horizontal axis.	 * 	 * @default "cross"	 * @see com.yahoo.astra.fl.charts.axes.TickPosition	 * @deprecated	 */	[Style(name="horizontalAxisTickPosition", type="String")]        //-- Minor ticks - Horizontal Axis    	/**	 * If true, ticks will be displayed on the horizontal axis at minor positions.	 * 	 * @default true	 * @deprecated	 */	[Style(name="showHorizontalAxisMinorTicks", type="Boolean")]		/**	 * The line weight, in pixels, for the minor ticks on the horizontal axis.	 * 	 * @default 1	 * @deprecated	 */	[Style(name="horizontalAxisMinorTickWeight", type="int")]    	/**	 * The line color for the minor ticks on the horizontal axis.	 * 	 * @default #888a85	 * @deprecated	 */	[Style(name="horizontalAxisMinorTickColor", type="uint")]    	/**	 * The length of the minor ticks on the horizontal axis.	 * 	 * @default 3	 * @deprecated	 */	[Style(name="horizontalAxisMinorTickLength", type="Number")]		/**	 * The position of the minor ticks on the horizontal axis.	 * 	 * @default "outside"	 * @see com.yahoo.astra.fl.charts.axes.TickPosition	 * @deprecated	 */	[Style(name="horizontalAxisMinorTickPosition", type="String")]		//-- Title - Horizontal Axis		/**	 * If true, the horizontal axis title will be displayed.	 * 	 * @default 2	 * @deprecated	 */	[Style(name="showHorizontalAxisTitle", type="Boolean")]		/**	 * The TextFormat object to use to render the horizontal axis title label.     *     * @default TextFormat("_sans", 11, 0x000000, false, false, false, '', '', TextFormatAlign.LEFT, 0, 0, 0, 0)	 * @deprecated	 */	[Style(name="horizontalAxisTitleTextFormat", type="TextFormat")]		/**	 * A chart based on the cartesian coordinate system (x, y).	 * 	 * @author Josh Tynjala	 */	public class CartesianChart extends Chart implements IChart, ICategoryChart	{			//--------------------------------------	//  Class Variables	//--------------------------------------			/**		 * @private		 * Exists simply to reference dependencies that aren't used		 * anywhere else by this component.		 */		private static const DEPENDENCIES:Array = [TimeAxis];			/**		 * @private		 */		private static var defaultStyles:Object = 		{			horizontalAxisStyles: {},			horizontalAxisGridLinesStyles: {},			horizontalAxisRenderer: DefaultAxisRenderer,			horizontalAxisGridLinesRenderer: DefaultGridLinesRenderer,						verticalAxisStyles: {},			verticalAxisGridLinesStyles: {},			verticalAxisRenderer: DefaultAxisRenderer,			verticalAxisGridLinesRenderer: DefaultGridLinesRenderer,						//DEPRECATED BELOW THIS POINT!			//(to be removed in a future version)						//axis			showHorizontalAxis: true,			horizontalAxisWeight: 1,			horizontalAxisColor: 0x888a85,						//title			showHorizontalAxisTitle: true,			horizontalAxisTitleTextFormat: new TextFormat("_sans", 11, 0x000000, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0),						//labels			showHorizontalAxisLabels: true,			horizontalAxisTextFormat: null,			horizontalAxisLabelDistance: 2,			horizontalAxisHideOverlappingLabels: true,			horizontalAxisLabelRotation: 0,						//grid lines			horizontalAxisGridLineWeight: 1,			horizontalAxisGridLineColor: 0xbabdb6,			showHorizontalAxisGridLines: false,			horizontalAxisMinorGridLineWeight: 1,			horizontalAxisMinorGridLineColor: 0xeeeeec,			showHorizontalAxisMinorGridLines: false,			horizontalAxisGridFillColors: [],			horizontalAxisGridFillAlphas: [],						//ticks			showHorizontalAxisTicks: false,			horizontalAxisTickWeight: 1,			horizontalAxisTickColor: 0x888a85,			horizontalAxisTickLength: 4,			horizontalAxisTickPosition: "cross",			showHorizontalAxisMinorTicks: false,			horizontalAxisMinorTickWeight: 1,			horizontalAxisMinorTickColor: 0x888a85,			horizontalAxisMinorTickLength: 3,			horizontalAxisMinorTickPosition: "outside",						//axis			showVerticalAxis: true,			verticalAxisWeight: 1,			verticalAxisColor: 0x888a85,						//title			showVerticalAxisTitle: true,			verticalAxisTitleTextFormat: new TextFormat("_sans", 11, 0x000000, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0),						//labels			showVerticalAxisLabels: true,			verticalAxisTextFormat: null,			verticalAxisLabelDistance: 2,			verticalAxisHideOverlappingLabels: true,			verticalAxisLabelRotation: 0,						//grid lines			showVerticalAxisGridLines: true,			verticalAxisGridLineWeight: 1,			verticalAxisGridLineColor: 0xbabdb6,			verticalAxisMinorGridLineWeight: 1,			verticalAxisMinorGridLineColor: 0xeeeeec,			showVerticalAxisMinorGridLines: false,			verticalAxisGridFillColors: [],			verticalAxisGridFillAlphas: [],						//ticks			showVerticalAxisTicks: true,			verticalAxisTickWeight: 1,			verticalAxisTickColor: 0x888a85,			verticalAxisTickLength: 4,			verticalAxisTickPosition: "cross",			showVerticalAxisMinorTicks: true,			verticalAxisMinorTickWeight: 1,			verticalAxisMinorTickColor: 0x888a85,			verticalAxisMinorTickLength: 3,			verticalAxisMinorTickPosition: "outside"		};				/**		 * @private		 * The chart styles that correspond to styles on the horizontal axis.		 */		private static const HORIZONTAL_AXIS_STYLES:Object = 		{			showAxis: "showHorizontalAxis",			axisWeight: "horizontalAxisWeight",			axisColor: "horizontalAxisColor",						textFormat: "textFormat",			embedFonts: "embedFonts",			hideOverlappingLabels: "horizontalAxisHideOverlappingLabels",			labelRotation: "horizontalAxisLabelRotation",			labelDistance: "horizontalAxisLabelDistance",			showLabels: "showHorizontalAxisLabels",						showTitle: "showHorizontalAxisTitle",			titleTextFormat: "horizontalAxisTitleTextFormat",						tickWeight: "horizontalAxisTickWeight",			tickColor: "horizontalAxisTickColor",			tickLength: "horizontalAxisTickLength",			tickPosition: "horizontalAxisTickPosition",			showTicks: "showHorizontalAxisTicks",			minorTickWeight: "horizontalAxisMinorTickWeight",			minorTickColor: "horizontalAxisMinorTickColor",			minorTickLength: "horizontalAxisMinorTickLength",			minorTickPosition: "horizontalAxisMinorTickPosition",			showMinorTicks: "showHorizontalAxisMinorTicks"		};				/**		 * @private		 * The chart styles that correspond to styles on the horizontal axis		 * grid lines.		 */		private static const HORIZONTAL_GRID_LINES_STYLES:Object =		{			lineWeight: "horizontalAxisGridLineWeight",			lineColor: "horizontalAxisGridLineColor",			showLines: "showHorizontalAxisGridLines",						minorLineWeight: "horizontalAxisMinorGridLineWeight",			minorLineColor: "horizontalAxisMinorGridLineColor",			showMinorLines: "showHorizontalAxisMinorGridLines",						fillColors: "horizontalAxisGridFillColors",			fillAlphas: "horizontalAxisGridFillAlphas"		}				/**		 * @private		 * The chart styles that correspond to styles on the vertical axis.		 */		private static const VERTICAL_AXIS_STYLES:Object = 		{			showAxis: "showVerticalAxis",			axisWeight: "verticalAxisWeight",			axisColor: "verticalAxisColor",						textFormat: "textFormat",			embedFonts: "embedFonts",			hideOverlappingLabels: "verticalAxisHideOverlappingLabels",			labelRotation: "verticalAxisLabelRotation",			labelDistance: "verticalAxisLabelDistance",			showLabels: "showVerticalAxisLabels",						showTitle: "showVerticalAxisTitle",			titleTextFormat: "verticalAxisTitleTextFormat",						tickWeight: "verticalAxisTickWeight",			tickColor: "verticalAxisTickColor",			tickLength: "verticalAxisTickLength",			tickPosition: "verticalAxisTickPosition",			showTicks: "showVerticalAxisTicks",						minorTickWeight: "verticalAxisMinorTickWeight",			minorTickColor: "verticalAxisMinorTickColor",			minorTickLength: "verticalAxisMinorTickLength",			minorTickPosition: "verticalAxisMinorTickPosition",			showMinorTicks: "showVerticalAxisMinorTicks"		};				/**		 * @private		 * The chart styles that correspond to styles on the vertical axis		 * grid lines.		 */		private static const VERTICAL_GRID_LINES_STYLES:Object =

⌨️ 快捷键说明

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