Summary description for ChartFloor.
Inheritance: IContent
コード例 #1
0
        /// <summary>
        /// create the chart floor
        /// </summary>
        /// <param name="node"></param>
        /// <returns></returns>

        private IContent CreateChartFloor(XmlNode node)
        {
            try
            {
                ChartFloor floor = new ChartFloor(this.Chart.Document, node);
                //grid.Node                   = node;
                floor.Chart = this.Chart;

                ChartStyleProcessor csp       = new ChartStyleProcessor(this.Chart);
                XmlNode             nodeStyle = csp.ReadStyleNode(floor.StyleName);
                IStyle style = csp.ReadStyle(nodeStyle, "floor");

                if (style != null)
                {
                    floor.Style = style;
                    this.Chart.Styles.Add(style);
                }

                return(floor);
            }

            catch (Exception ex)
            {
                throw new AODLException("Exception while creating the chart floor!", ex);
            }
        }
コード例 #2
0
		/// <summary>
		/// create the chart floor
		/// </summary>
		/// <param name="node"></param>
		/// <returns></returns>

		private IContent CreateChartFloor(XmlNode node)
		{
			try
			{
				ChartFloor floor                 = new ChartFloor(this.Chart .Document ,node);
				//grid.Node                   = node;
				floor.Chart                     = this.Chart ;

				ChartStyleProcessor csp        = new ChartStyleProcessor (this.Chart );
				XmlNode nodeStyle              = csp.ReadStyleNode(floor.StyleName);
				IStyle style                   = csp.ReadStyle (nodeStyle,"floor");

				if (style != null)
				{
					floor.Style                 =style;
					this.Chart .Styles .Add (style);
				}

				return floor;
			}

			catch(Exception ex)
			{
				throw new AODLException("Exception while creating the chart floor!", ex);
			}

		}