Summary description for Dr3dLight.
Inheritance: IContent
Exemplo n.º 1
0
        /// <summary>
        /// create the dr3d light
        /// </summary>
        /// <param name="node"></param>
        /// <returns></returns>

        private IContent CreateDr3dLight(XmlNode node)
        {
            try
            {
                Dr3dLight light = new Dr3dLight(this.Chart.Document, node);
                //grid.Node                    = node;
                light.Chart = this.Chart;

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

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

                return(light);
            }
            catch (Exception ex)
            {
                throw new AODLException("Exception while creating the chart dr3dlight!", ex);
            }
        }
		/// <summary>
		/// create the dr3d light
		/// </summary>
		/// <param name="node"></param>
		/// <returns></returns>

		private IContent CreateDr3dLight(XmlNode node)
		{
			try
			{
				Dr3dLight  light               = new Dr3dLight(this.Chart .Document ,node);
				//grid.Node                    = node;
				light.Chart                    = this.Chart ;

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

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

				return light;


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