chart respresents a chart object which embed into the spresdsheet document. It is inherited from the EmbedObject
상속: AODL.Document.Content.EmbedObjects.EmbedObject
예제 #1
0
		public static Chart CreateChart(Table table,ChartTypes type,string CellRange)
		{
			Chart chart        = new Chart (table,"ch1");
			chart.ChartType    = type.ToString ();
			chart.CreateFromCellRange (CellRange);
			return chart;
		}
예제 #2
0
		public ChartDomain(Chart chart)
		{
			this.Chart =chart;
			this.Document =chart.Document;
			this.NewXmlNode (null);

		}
예제 #3
0
		/// <summary>
		/// Initializes a new instance of the charttitle class.
		/// </summary>
		/// <param name="table">The table.</param>
		public ChartTitle(Chart chart)
		{
			this.Chart				= chart;
			this.Document			= chart.Document;
			this.NewXmlNode(null);
			this.InitStandards();
			this.TitleStyle = new TitleStyle (chart.Document ,null);
			this.Chart .Styles .Add (this.TitleStyle );
			//chart.Content .Add (this);
		}
		/// <summary>
		/// the constructor of the chartStyleProcesser
		/// </summary>
		/// <param name="chart"></param>

		public ChartStyleProcessor(Chart chart)
		{
			this.Chart =chart;
			
		}
		/// <summary>
		/// create the chart
		/// </summary>
		/// <param name="ParentNode"></param>
		/// <param name="ObjectRealPath"></param>
		/// <returns></returns>

		public  Chart CreateChart(XmlNode ParentNode, string ObjectRealPath,string ObjectName)
		{
			Chart chart                 = new Chart (this._document ,null,ParentNode);

			chart.ObjectType            = "chart";

			chart.ObjectName            = ObjectName;

			chart.ObjectRealPath        = ObjectRealPath;

			ChartImporter chartimporter = new ChartImporter (chart);

			chartimporter.Import ();

			return chart;
		}
		/// <summary>
		/// the constructor of the ChartImporter
		/// </summary>
		/// <param name="chart"></param>

		public ChartImporter(Chart chart)
		{
			this.Chart =chart;
			
		}
예제 #7
0
		public ChartLegend(Chart chart)
		{
			this.Chart =chart;
			this.Document =chart.Document;			
			this.NewXmlNode (null);
			this.LegendStyle = new LegendStyle (chart.Document); 

			chart.Content .Add (this);
		}
예제 #8
0
		/// <summary>
		/// Initializes a new instance of the ChartAxis class.
		/// </summary>
		/// <param name="table">The table.</param>
		/// <param name="styleName">The style name.</param>
		public ChartAxis(Chart chart, string styleName)
		{
			this.Chart				= chart;
			this.Document			= chart.Document;
			this.NewXmlNode(styleName);
			
			

			if (styleName != null)
			{
				this.StyleName		= styleName;
				this.AxesStyle		= new AxesStyle(this.Document, styleName);
				this.Chart.Styles.Add(this.AxesStyle);
			}

			this.InitStandards();
		}
예제 #9
0
		public ChartStyles(Chart chart)
		{
			this.Chart     = chart;
			this.Styles    = new XmlDocument ();

		}
		public ChartCategories(Chart chart)
		{
			this.Chart =chart;
			this.Document =chart.Document;
			this.NewXmlNode (null);
		}
		public ChartCategories(Chart chart, string styleName)
		{
			this.Chart =chart;
			this.Document =chart.Document;
			this.NewXmlNode (styleName);
		}
예제 #12
0
		public ChartWall(Chart chart,string styleName)
		{
			this.Chart =chart;
			this.Document =chart.Document;
			this.NewXmlNode (styleName);

			if (styleName!=null)
			{
				this.StyleName =styleName;
				this.WallStyle = new WallStyle (chart.Document ,styleName);
				this.Chart .Styles .Add (this.WallStyle );
			}

			this.Chart .Content .Add (this);
		}
예제 #13
0
		public ChartWall(Chart chart)
		{
			this.Chart =chart;
			this.Document =chart.Document;
			this.NewXmlNode (null);
			this.WallStyle = new WallStyle (chart.Document);
			this.Chart .Styles .Add (this.WallStyle );
			this.Chart.Content.Add (this);
		}
예제 #14
0
		/// <summary>
		/// Initializes a new instance of the ChartPlotArea class.
		/// </summary>
		/// <param name="table">The table.</param>
		/// <param name="styleName">The style name.</param>
		public ChartSeries(Chart chart, string styleName)
		{
			this.Chart				= chart;
			this.Document			= chart.Document;
			this.NewXmlNode(styleName);
			this.InitStandards();
			this.DataPointCollection  = new DataPointCollection ();

			if (styleName != null)
			{
				this.StyleName		= styleName;
				this.SeriesStyle		= new SeriesStyle(this.Document, styleName);
				this.Chart.Styles.Add(this.SeriesStyle);
			}
		}
예제 #15
0
		/// <summary>
		/// Initializes a new instance of the ChartPlotArea class.
		/// This will create an empty cell that use the default cell style
		/// </summary>
		/// <param name="table">The table.</param>
		public ChartSeries(Chart chart)
		{
			this.Chart				= chart;
			this.Document			= chart.Document;
			this.DataPointCollection =new DataPointCollection ();	
			this.NewXmlNode(null);
			this.SeriesStyle =new SeriesStyle (this.Document);
			this.Chart .Styles .Add (SeriesStyle);
		
			this.InitStandards();
		}
예제 #16
0
		/// <summary>
		/// the constructor of the dr3dlight
		/// </summary>
		/// <param name="chart"></param>

		public Dr3dLight(Chart chart)
		{
			this.Chart =chart;
			this.NewXmlNode ();
		}
예제 #17
0
		/// <summary>
		/// Initializes a new instance of the charttitle class.
		/// </summary>
		/// <param name="table">The table.</param>
		/// <param name="styleName">The style name.</param>
		public ChartTitle(Chart chart, string styleName)
		{
			this.Chart				= chart;
			this.Document			= chart.Document;
			this.NewXmlNode(styleName);
			this.InitStandards();

			if (styleName != null)
			{
				this.StyleName		= styleName;
				this.TitleStyle		= new TitleStyle(this.Document, styleName);
				this.Chart.Styles.Add(this.TitleStyle);
			}

			//chart.Content .Add (this);
		}
예제 #18
0
		public static ChartAxis CreateAxis(Chart chart,string Dimention, string name)
		{
			ChartAxis axis   = new ChartAxis (chart,"ch"+Dimention);
			axis.Dimension   = Dimention;
			axis.AxisName    = name;
			return    axis;
		}
예제 #19
0
		/// <summary>
		/// Initializes a new instance of the chartaxis class.
		/// </summary>
		/// <param name="chart">The chart.</param>
		public ChartAxis(Chart chart)
		{
			this.Chart				= chart;
			this.Document			= chart.Document;
			this.NewXmlNode(null);
			this.AxesStyle = new AxesStyle (chart.Document);
			this.Chart .Styles .Add (this.AxesStyle);
			this.InitStandards();

			if (this.AxesStyle .AxesProperties.DisplayLabel==null)
			     this.AxesStyle .AxesProperties.DisplayLabel ="true";

		}
예제 #20
0
		public ChartPlotArea(Chart chart)
		{
			this.Chart				= chart;
			this.Document			= chart.Document;
			this.NewXmlNode(null);
			this.InitStandards();
			this.PlotAreaStyle = new PlotAreaStyle (chart.Document);
			chart.Styles .Add (this.PlotAreaStyle );
			this.InitPlotArea ();
			chart.Content .Add (this);
		}
예제 #21
0
		public void InsertChartAt(string cellName,Chart chart)
		{
			string endCell= chart.EndCellAddress ;
			
			if (endCell==null)
			{
				int CurRowIndex= chart.GetCellPos (cellName,this).rowIndex ;
				int CurColIndex= chart.GetCellPos (cellName,this).columnIndex ;
				int EndRowIndex = CurRowIndex +15;
				int EndColIndex = CurColIndex +5;

				string EndCellRow  =EndRowIndex.ToString ();
				string EndCellCol  = null;

				if (EndColIndex<=26)
				{
					char  col = (char)(EndColIndex+'A'-1);
					EndCellCol=col.ToString ();
				}

				else if (CurColIndex>26&&CurColIndex<=260)
				{
					int FirstCha = CurColIndex/26;
					char FirstCharacter = (char)(FirstCha+'A'-1);
					int SecondCha =CurColIndex%2 ;
					char SecondChatacter = (char)(SecondCha+'A'-1);
					EndCellCol=FirstCharacter.ToString ()+SecondChatacter.ToString ();
				}

				endCell = this.TableName +"."+EndCellCol+EndCellRow;
				chart.EndCellAddress =endCell;
			}

			Cell   cell = (chart.GetCellPos (cellName,this)).cell ;
			cell.Content .Add (chart.Frame );
		}
예제 #22
0
		public ChartGrid(Chart chart)
		{
			this.Chart =chart;
			this.NewXmlNode (null);		
			this.Document =chart.Document;
		}
		/// <summary>
		/// Initializes a new instance of the ChartPlotArea class.
		/// This will create an empty cell that use the default cell style
		/// </summary>
		/// <param name="table">The table.</param>
		public ChartDataPoint(Chart chart)
		{
			this.Chart				= chart;
			this.Document			= chart.Document;
			this.NewXmlNode(null);
			this.DataPointStyle = new DataPointStyle (chart.Document);
			this.Chart .Styles .Add (this.DataPointStyle ); 
			//this.InitStandards();
		}
예제 #24
0
		public ChartLegend(Chart chart,string styleName)
		{
			this.Chart =chart;
			this.Document =chart.Document;			
			this.NewXmlNode (styleName);
			this.LegendStyle = new LegendStyle (this.Document,styleName);
			this.Chart .Styles .Add (this.LegendStyle );

			chart.Content .Add (this);
		}
예제 #25
0
		/// <summary>
		/// Initializes a new instance of the ChartPlotArea class.
		/// </summary>
		/// <param name="table">The table.</param>
		/// <param name="styleName">The style name.</param>
		public ChartPlotArea(Chart chart, string styleName)
		{
			this.Chart				= chart;
			this.Document			= chart.Document;
			this.NewXmlNode(styleName);

			this.InitStandards();

			if (styleName != null)
			{
				this.StyleName		= styleName;			
				this.PlotAreaStyle = new PlotAreaStyle (chart.Document,styleName);
				chart.Styles .Add (this.PlotAreaStyle );
				
			}
			this.InitPlotArea ();

			chart.Content .Add (this);
		}
		public ChartDataPoint(Chart chart, string styleName)
		{
			this.Chart				= chart;
			this.Document			= chart.Document;
			this.NewXmlNode(styleName);

			//this.InitStandards();

			if (styleName != null)
			{
				this.StyleName		= styleName;
				this.DataPointStyle		= new DataPointStyle(this.Document, styleName);
				this.Chart.Styles.Add(this.DataPointStyle);
			}
		}
예제 #27
0
		public ChartGrid(Chart chart,string styleName)
		{
			this.Chart =chart;
			this.Document =chart.Document;
			this.NewXmlNode (styleName);
		}
예제 #28
0
		/// <summary>
		/// Initializes a new instance of the ChartPlotArea class.
		/// This will create an empty cell that use the default cell style
		/// </summary>
		/// <param name="table">The table.</param>
		public ChartFloor(Chart chart)
		{
			this.Chart				= chart;
			this.Document			= chart.Document;
			this.NewXmlNode(null);
			this.FloorStyle = new FloorStyle (chart.Document);
			this.Chart .Styles .Add (this.FloorStyle );
			//this.InitStandards();
		}