chart respresents a chart object which embed into the spresdsheet document. It is inherited from the EmbedObject
Inheritance: 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
ファイル: ChartDomain.cs プロジェクト: rabidbob/aodl-reloaded
		public ChartDomain(Chart chart)
		{
			this.Chart =chart;
			this.Document =chart.Document;
			this.NewXmlNode (null);

		}
コード例 #3
0
ファイル: ChartTitle.cs プロジェクト: rabidbob/aodl-reloaded
		/// <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);
		}
コード例 #4
0
		/// <summary>
		/// the constructor of the chartStyleProcesser
		/// </summary>
		/// <param name="chart"></param>

		public ChartStyleProcessor(Chart chart)
		{
			this.Chart =chart;
			
		}
コード例 #5
0
		/// <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;
		}
コード例 #6
0
		/// <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
ファイル: ChartAxis.cs プロジェクト: rabidbob/aodl-reloaded
		/// <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
ファイル: ChartStyles.cs プロジェクト: rabidbob/aodl-reloaded
		public ChartStyles(Chart chart)
		{
			this.Chart     = chart;
			this.Styles    = new XmlDocument ();

		}
コード例 #10
0
		public ChartCategories(Chart chart)
		{
			this.Chart =chart;
			this.Document =chart.Document;
			this.NewXmlNode (null);
		}
コード例 #11
0
		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
ファイル: ChartSeries.cs プロジェクト: rabidbob/aodl-reloaded
		/// <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
ファイル: ChartSeries.cs プロジェクト: rabidbob/aodl-reloaded
		/// <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
ファイル: Dr3dLight.cs プロジェクト: rabidbob/aodl-reloaded
		/// <summary>
		/// the constructor of the dr3dlight
		/// </summary>
		/// <param name="chart"></param>

		public Dr3dLight(Chart chart)
		{
			this.Chart =chart;
			this.NewXmlNode ();
		}
コード例 #17
0
ファイル: ChartTitle.cs プロジェクト: rabidbob/aodl-reloaded
		/// <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
ファイル: ChartAxis.cs プロジェクト: rabidbob/aodl-reloaded
		/// <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
ファイル: Table.cs プロジェクト: rabidbob/aodl-reloaded
		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
ファイル: ChartGrid.cs プロジェクト: rabidbob/aodl-reloaded
		public ChartGrid(Chart chart)
		{
			this.Chart =chart;
			this.NewXmlNode (null);		
			this.Document =chart.Document;
		}
コード例 #23
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 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);
		}
コード例 #26
0
		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
ファイル: ChartGrid.cs プロジェクト: rabidbob/aodl-reloaded
		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();
		}