AODL.Document.Content.Charts.ChartImporter.CreateChartWall C# (CSharp) Method

CreateChartWall() private method

create the chart wall
private CreateChartWall ( XmlNode node ) : IContent
node System.Xml.XmlNode
return IContent
		private IContent CreateChartWall(XmlNode node)
		{
			try
			{
				ChartWall wall                 = new ChartWall(this.Chart .Document ,node);
				//grid.Node                   = node;
				wall.Chart                     = this.Chart ;

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

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

				return wall;
			}

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