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

CreateChartFloor() private method

create the chart floor
private CreateChartFloor ( XmlNode node ) : IContent
node System.Xml.XmlNode
return IContent
		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);
			}

		}