void InitializeChart() { tChart1 = new Steema.TeeChart.TChart(ApplicationContext); tChart1.Aspect.View3D = false; tChart1.Zoom.Style = Steema.TeeChart.ZoomStyles.InChart; tChart1.Legend.Visible = false; tChart1.Header.Text = "Chart created using Xamarin.Android"; tChart1.Header.Font.Size = 24; tChart1.Header.Font.Color = System.Drawing.Color.Black; tChart1.ContentDescription = "Pie2D"; var pie1 = new Steema.TeeChart.Styles.Pie(tChart1.Chart); pie1.FillSampleValues(4); pie1.Circled = true; pie1.Marks.Transparent = true; pie1.Marks.Arrow.Visible = false; pie1.Marks.Font.Size = 24; pie1.Pen.Width = 8; pie1.Pen.Color = System.Drawing.Color.FromArgb(60, 60, 60); pie1.Pen.EndCap = Android.Graphics.Paint.Cap.Round; pie1.ExplodeBiggest = 15; pie1.ColorEach = false; for (int i = 0; i < pie1.Count; i++) { pie1.Colors[i] = Steema.TeeChart.Themes.Theme.OnBlackPalette [i]; } SetContentView(tChart1); }
void InitializeChart(double level) { tChart1 = new Steema.TeeChart.TChart(ApplicationContext); tChart1.Header.Visible = true; tChart1.Header.Text = "Battery Level"; tChart1.Header.Font.Size = 20; tChart1.Header.Font.Color = Color.LightGray; tChart1.Panel.Visible = false; var circularGauge1 = new Steema.TeeChart.Styles.CircularGauge(tChart1.Chart); circularGauge1.Value = level * 100; circularGauge1.NumericGauge.Visible = true; circularGauge1.NumericGauge.ValueFormat = "###.0"; circularGauge1.NumericGauge.ValueMarker.Shape.Font.Size = 25; circularGauge1.TotalAngle = 240; circularGauge1.RedLine.Visible = false; circularGauge1.GreenLineStartValue = 0; circularGauge1.GreenLineEndValue = 100; circularGauge1.GreenLine.Gradient.Direction = Steema.TeeChart.Drawing.GradientDirection.RightLeft; circularGauge1.GreenLine.Gradient.UseMiddle = true; circularGauge1.GreenLine.Gradient.StartColor = Color.Red; circularGauge1.GreenLine.Gradient.MiddleColor = Color.Yellow; circularGauge1.GreenLine.Gradient.EndColor = Color.Green; circularGauge1.Axis.Labels.Font.Color = Color.LightGray; circularGauge1.Axis.Labels.Font.Size = 15; circularGauge1.MinorTicks.Visible = true; circularGauge1.MinorTicks.VertSize = 2; circularGauge1.MinorTicks.HorizSize = 2; circularGauge1.Axis.MinorTickCount = 4; SetContentView(tChart1); }
private void InitializeComponent(Steema.TeeChart.TChart chart) { OwnerChart = chart; Pen.Color = System.Drawing.Color.LightYellow; Pen.Style = System.Drawing.Drawing2D.DashStyle.Dash; SnapStyle = Steema.TeeChart.Tools.SnapStyle.Vertical; Style = Steema.TeeChart.Tools.CursorToolStyles.Scope; Snap = true; chart.Tools.Add(this); CursorInfo = new Steema.TeeChart.Tools.RectangleTool(); chart.Tools.Add(CursorInfo); CursorInfo.AutoSize = true; CursorInfo.Cursor = System.Windows.Forms.Cursors.Hand; CursorInfo.Shape.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); CursorInfo.Shape.Brush.Gradient.Transparency = 20; CursorInfo.Shape.Font.Bold = true; CursorInfo.Shape.Font.Brush.Color = System.Drawing.Color.White; CursorInfo.Shape.Font.Brush.Gradient.Transparency = 20; CursorInfo.Shape.Font.Name = "Consolas"; CursorInfo.Shape.Font.Shadow.Brush.Color = System.Drawing.Color.Black; CursorInfo.Shape.Font.Size = 11; CursorInfo.Shape.Font.SizeFloat = 11F; chart.MouseDown += TChart_MouseDown; chart.MouseUp += TChart_MouseUp; }
private void AnimateSeries(Steema.TeeChart.TChart chart) { double newX, newY; chart.AutoRepaint = false; /// <summary> /// 绘画坐标点超过50个时将实时更新X时间坐标 /// </summary> while (this.fastLine1.Count > 50) { this.fastLine1.Delete(0); fastLine1.GetHorizAxis.SetMinMax(DateTime.Now.AddSeconds(-50), DateTime.Now.AddSeconds(60)); } newX = DateTime.Now.ToOADate(); newY = rnd.Next(1500); if (Math.Abs(newY) > 1.0e+4) { newY = 0.0; } fastLine1.Add(newX, newY); chart.AutoRepaint = true; chart.Refresh(); }
private void AnimateSeries(Steema.TeeChart.TChart chart) { Random rnd = new Random(); double newX, newY; chart.AutoRepaint = false; foreach (TeeChart.Styles.Series s in chart.Series) { // show only 50 points - delete the rest while (s.Count > 50) { s.Delete(0); } if (s.Count > 50) { s.Delete(0); } newX = s.XValues.Last + 1; newY = s.YValues.Last + 1000 * rnd.Next(2) - 500; if (Math.Abs(newY) > 1.0e+4) { newY = 0.0; } s.Add(newX, newY); } chart.AutoRepaint = true; chart.Refresh(); }
private void AnimateSeries(Steema.TeeChart.TChart chart, YBData ydata) { double newX, newY; chart.AutoRepaint = false; /// <summary> /// 绘画坐标点超过100个时将实时更新X时间坐标 /// </summary> while (this.line1.Count > 100) { this.line1.Delete(0); line1.GetHorizAxis.SetMinMax(DateTime.Now.AddSeconds(-50), DateTime.Now.AddSeconds(60)); } newX = DateTime.Now.ToOADate(); if (ydata.flVot == null) { newY = 0; } else { newY = (double)ydata.flVot; } line1.Add(newX, newY); chart.AutoRepaint = true; chart.Refresh(); }
void AnimateSeries(Steema.TeeChart.TChart chart) { var rnd = new Random(); double newX, newY; tChart1.AutoRepaint = false; foreach (Steema.TeeChart.Styles.Series s in chart.Series) { // show only 50 points - delete the rest while (s.Count > NumPoints) { s.Delete(0); } if (s.Count > NumPoints) { s.Delete(0); } newX = s.XValues.Last + 1; newY = rnd.Next(MaxValue); if ((Math.Abs(newY) > MaxValue) || (Math.Abs(newY) < MinValue)) { newY = 0.0; } s.Add(newX, newY); } tChart1.Axes.Bottom.SetMinMax(tChart1.Axes.Bottom.Minimum + 1, tChart1.Axes.Bottom.Maximum + 1); tChart1.AutoRepaint = true; tChart1.Chart.Invalidate(); }
private void DrawRichText(Steema.TeeChart.TChart Chart, string RichText, System.Drawing.Point p, System.Drawing.Size s) { System.Windows.Forms.RichTextBox richTextBox1 = new System.Windows.Forms.RichTextBox(); richTextBox1.Location = p; richTextBox1.Size = s; richTextBox1.Rtf = RichText; richTextBox1.BackColor = Chart.BackColor; richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; Chart.Controls.Add(richTextBox1); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); // Get our button from the layout resource, // and attach an event to it Button button = FindViewById <Button>(Resource.Id.MyButton); button.Click += delegate { timer1.Enabled = !timer1.Enabled; button.Text = (timer1.Enabled) ? Resources.GetString(Resource.String.Stop) : Resources.GetString(Resource.String.Start); }; //Add the chart tChart1 = new Steema.TeeChart.TChart(this); tChart1.Aspect.View3D = false; tChart1.Zoom.Style = Steema.TeeChart.ZoomStyles.None; tChart1.Legend.Visible = false; tChart1.Panel.Gradient.Visible = false; tChart1.Walls.Back.Gradient.Visible = false; tChart1.Walls.Back.Visible = false; tChart1.Axes.Left.Grid.Visible = false; tChart1.Axes.Bottom.Grid.Visible = false; tChart1.Axes.Left.Automatic = false; tChart1.Axes.Bottom.Automatic = false; tChart1.Axes.Left.SetMinMax(MinValue, MaxValue); tChart1.Axes.Bottom.SetMinMax(0, NumPoints); tChart1.ClickSeries += tChart1_ClickSeries; //Left axis disabled for performance purposes. tChart1.Axes.Left.Visible = false; var fastLine1 = new Steema.TeeChart.Styles.FastLine(tChart1.Chart); fastLine1.FillSampleValues(NumPoints); fastLine1.DrawAllPoints = false; LinearLayout layout = FindViewById <LinearLayout>(Resource.Id.linearLayout1); layout.AddView(tChart1, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FillParent, 400)); timer1 = new System.Timers.Timer(); timer1.Elapsed += new System.Timers.ElapsedEventHandler(timer1_Elapsed); timer1.Interval = 100; timer1.Start(); }
/// <summary> /// 给TeeChart增加一个数据,并且重新绘制图形。 /// </summary> /// <param name="tChart">Tea Chart</param> /// <param name="time">X Axes</param> /// <param name="value">Y Axes</param> public static void addSingleData2TeeChart(Steema.TeeChart.TChart tChart, int dataCountPerFrame, DateTime time, double value) { //// 重绘 tChart.AutoRepaint = false; double maxVertValue = 0; double minVertValue = 0; // 绘画坐标点超过20个时将实时更新X时间坐标 //while (tChart.Series[0].Count > 0 && tChart.Series[0].Count >= dataCountPerFrame - 1) //{ // 删除第一个点 //tChart.Series[0].Delete(0); // 重新设置X轴的最大值和最小值---x轴的时间间隔为20min. tChart.Series[0].GetHorizAxis.SetMinMax(DateTime.Now.AddSeconds(dataCountPerFrame * -1 * 10), DateTime.Now); //} tChart.Series[0].Add(time, value); // 更新最大值和最小值。 double[] yValues = tChart.Series[0].YValues.Value; for (int i = 0; i < yValues.Length; i++) { if (yValues[i] > maxVertValue) { maxVertValue = yValues[i]; } if (yValues[i] < minVertValue) { minVertValue = yValues[i]; } } // update vertical coordinate, -+2 in order to make the curve align middle. if (tChart.Name == "tChartN") { tChart.Series[0].GetVertAxis.SetMinMax(minVertValue - 1, maxVertValue + 1); } //if (maxVertValue < 1) //{ // tChart.Series[0].GetVertAxis.SetMinMax(0, 1); //} //else //{ // tChart.Series[0].GetVertAxis.SetMinMax(minVertValue - minVertValue * 0.1, maxVertValue + maxVertValue * 0.1); //} // 重绘 tChart.AutoRepaint = true; tChart.Refresh(); }
public Theme_Custom() { // This call is required by the Windows Form Designer. InitializeComponent(); tChart2 = new Steema.TeeChart.TChart(); tChart2.Dock = DockStyle.Right; tChart2.Width = 400; chartContainer.Controls.Add(tChart2); CreateStyle(); tChart1.Series.Add(new Steema.TeeChart.Styles.Points()); tChart1[0].FillSampleValues(); }
public static void resetTeeChart(Steema.TeeChart.TChart tChart) { // 初始化 tChart.Series[0].Clear(); // 设置X轴最小值和最大值 tChart.Series[0].GetHorizAxis.SetMinMax(DateTime.Now, DateTime.Now.AddSeconds(1200)); // 设置Y轴的最小值和最大值 tChart.Series[0].GetVertAxis.SetMinMax(0, 10); // 设置Y轴间距 tChart.Axes.Left.Increment = 0.1; //tChart.Axes.Bottom.MinorTickCount = this.updateFrequency; }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); chart = new Steema.TeeChart.TChart(this.ApplicationContext); chart.Zoom.Style = Steema.TeeChart.ZoomStyles.FullChart; Steema.TeeChart.Themes.BlackIsBackTheme myTheme = new Steema.TeeChart.Themes.BlackIsBackTheme(chart.Chart); myTheme.Apply(); Bundle extras = Intent.Extras; int seriesType = extras.GetInt("SeriesPosition"); Type tmp = (Type)Steema.TeeChart.Utils.SeriesTypesOf[seriesType]; Steema.TeeChart.Styles.Series series; //Some series can not work without a parent chart due to internal structure. if (tmp.Name == "TreeMap") { series = new Steema.TeeChart.Styles.TreeMap(chart.Chart); } else if (tmp.Name == "PolarGrid") { series = new Steema.TeeChart.Styles.PolarGrid(chart.Chart); } else { series = chart.Series.Add(tmp); } series.FillSampleValues(); chart.Aspect.View3D = Needs3D(chart[0]); //chart.Panel.Transparent = true; if (chart[0] is Steema.TeeChart.Styles.Pie) { Steema.TeeChart.Styles.Pie pie = (Steema.TeeChart.Styles.Pie)chart[0]; pie.EdgeStyle = Steema.TeeChart.Drawing.EdgeStyles.Flat; pie.BevelPercent = 30; chart.Legend.Visible = false; chart.Aspect.Elevation = 300; } SetContentView(chart); }
void InitializeChart() { var tChart1 = new Steema.TeeChart.TChart(ApplicationContext); tChart1.Aspect.View3D = false; tChart1.Header.Text = "Zoom the chart!"; //tChart1.Zoom.Style = Steema.TeeChart.ZoomStyles.InChart; tChart1.ContentDescription = "Classic"; var myTheme = new Steema.TeeChart.Themes.BlackIsBackTheme(tChart1.Chart); myTheme.Apply(); tChart1.Series.Add(new Steema.TeeChart.Styles.Area()).FillSampleValues(); SetContentView(tChart1); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var tChart1 = new Steema.TeeChart.TChart(ApplicationContext); tChart1.Panel.Transparent = true; tChart1.Header.Text = "Multiple series made with Xamarin.Android"; tChart1.Zoom.Style = Steema.TeeChart.ZoomStyles.FullChart; tChart1.Axes.Top.Visible = false; tChart1.ContentDescription = "MultiChart"; var myTheme = new Steema.TeeChart.Themes.BlackIsBackTheme(tChart1.Chart); myTheme.Apply(); var area1 = new Steema.TeeChart.Styles.Area(tChart1.Chart); area1.FillSampleValues(); area1.Gradient.Visible = true; area1.Gradient.StartColor = area1.Color; area1.Gradient.Transparency = 40; area1.Transparency = area1.Gradient.Transparency; var bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart); bar1.FillSampleValues(); bar1.Brush.Transparency = 30; bar1.Marks.Visible = false; bar1.Color = Steema.TeeChart.Themes.Theme.OnBlackPalette[1]; bar1.HorizAxis = Steema.TeeChart.Styles.HorizontalAxis.Top; var line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart); line1.FillSampleValues(); line1.Color = Steema.TeeChart.Themes.Theme.OnBlackPalette[3]; SetContentView(tChart1); }
public override void PrintPage(Rectangle MarginBounds, Graphics g) { foreach (Control C in Panel.Controls) { double XProportion = C.Location.X * 1.0 / Panel.Size.Width; double YProportion = C.Location.Y * 1.0 / Panel.Size.Height; double WidthProportion = C.Size.Width * 1.0 / Panel.Size.Width; double HeightProportion = C.Size.Height * 1.0 / Panel.Size.Height; int W = (int)(MarginBounds.Width * WidthProportion); int H = (int)(MarginBounds.Height * HeightProportion); Steema.TeeChart.TChart chart = null; if (C is GraphUI) { chart = (C as GraphUI).Chart; } else if (C is GraphUI2) { chart = (C as GraphUI2).Chart; } if (chart != null) { Stream stream = new MemoryStream(); Steema.TeeChart.Export.ImageExportFormat image = chart.Export.Image.PNG; image.Width = W; image.Height = H; image.Save(stream); Image img = Image.FromStream(stream); Point P = new Point(MarginBounds.Left + (int)(MarginBounds.Width * XProportion), MarginBounds.Top + (int)(MarginBounds.Height * YProportion)); g.DrawImage(img, P); } } }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { var view = inflater.Inflate(Resource.Layout.ExchangeFragment, container, false); context = view.Context; LinearLayout layout = view.FindViewById <LinearLayout>(Resource.Id.exchange); Steema.TeeChart.TChart chart = new Steema.TeeChart.TChart(context); chart.Header.Text = "Exchange-rate variation"; Steema.TeeChart.Styles.Line euro = new Steema.TeeChart.Styles.Line(); Steema.TeeChart.Styles.Line dollar = new Steema.TeeChart.Styles.Line(); chart.Series.Add(euro); chart.Series.Add(dollar); euro.Title = "Euro"; dollar.Title = "Dollar"; euro.Add(3, "Monday"); euro.Add(5, "Tuesday"); euro.Add(6, "Wednesday"); dollar.Add(6, "Today"); dollar.Add(12, "Monday"); Steema.TeeChart.Themes.BlackIsBackTheme theme = new Steema.TeeChart.Themes.BlackIsBackTheme(chart.Chart); theme.Apply(); euro.Color = Color.Orange; dollar.Color = Color.OrangeRed; //chart.Header.Color = Color.OrangeRed; chart.Header.Font.Color = Color.OrangeRed; layout.AddView(chart, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, 600)); return(view); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.galleryPanel1 = new Steema.TeeChart.GalleryPanel(); this.tChart1 = new Steema.TeeChart.TChart(); this.panel2.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Size = new System.Drawing.Size(426, 40); this.textBox1.Text = "GalleryPanel control displays chart styles."; // // panel1 // this.panel1.Location = new System.Drawing.Point(0, 40); this.panel1.Size = new System.Drawing.Size(426, 36); // // panel2 // this.panel2.Controls.Add(this.tChart1); this.panel2.Controls.Add(this.galleryPanel1); this.panel2.Location = new System.Drawing.Point(0, 76); this.panel2.Size = new System.Drawing.Size(426, 182); // // galleryPanel1 // this.galleryPanel1.Dock = System.Windows.Forms.DockStyle.Left; this.galleryPanel1.Location = new System.Drawing.Point(0, 0); this.galleryPanel1.Name = "galleryPanel1"; this.galleryPanel1.Size = new System.Drawing.Size(167, 182); this.galleryPanel1.TabIndex = 0; this.galleryPanel1.OnSubSelected += new System.EventHandler(this.galleryPanel1_OnSubSelected); this.galleryPanel1.OnChangeChart += new System.EventHandler(this.galleryPanel1_OnChangeChart); // // tChart1 // this.tChart1.Dock = System.Windows.Forms.DockStyle.Fill; // // // // // // // // // this.tChart1.Legend.Title.Pen.Visible = false; this.tChart1.Location = new System.Drawing.Point(167, 0); this.tChart1.Name = "tChart1"; this.tChart1.Size = new System.Drawing.Size(259, 182); this.tChart1.TabIndex = 1; // // Gallery_Panel // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(426, 258); this.Name = "Gallery_Panel"; this.panel2.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Tool_CursorSynchro)); this.tChart1 = new Steema.TeeChart.TChart(); this.lineSeries1 = new Steema.TeeChart.Styles.Line(); this.cursorSRC = new Steema.TeeChart.Tools.CursorTool(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.tChart2 = new Steema.TeeChart.TChart(); this.lineSeries2 = new Steema.TeeChart.Styles.Line(); this.cursorDEST = new Steema.TeeChart.Tools.CursorTool(); this.checkBox2 = new System.Windows.Forms.CheckBox(); this.label1 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Size = new System.Drawing.Size(426, 54); this.textBox1.Text = "Cursors can be synchronized as this example shows. Both Chart1 and Chart2 contain" + " a Cursor tool. The Cursor tool OnChange event is used to synchronize the other." + ""; // // panel1 // this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.checkBox2); this.panel1.Controls.Add(this.checkBox1); this.panel1.Location = new System.Drawing.Point(0, 54); this.panel1.Size = new System.Drawing.Size(426, 48); // // panel2 // this.panel2.Controls.Add(this.tChart2); this.panel2.Controls.Add(this.tChart1); this.panel2.Location = new System.Drawing.Point(0, 102); this.panel2.Size = new System.Drawing.Size(426, 156); // // tChart1 // // // // this.tChart1.Aspect.View3D = false; this.tChart1.Aspect.ZOffset = 0; this.tChart1.BackColor = System.Drawing.Color.Transparent; this.tChart1.Dock = System.Windows.Forms.DockStyle.Left; // // // this.tChart1.Header.Lines = new string[] { "tChart1" }; // // // this.tChart1.Legend.Visible = false; this.tChart1.Location = new System.Drawing.Point(0, 0); this.tChart1.Name = "tChart1"; // // // // // // this.tChart1.Panel.Bevel.ColorOne = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); this.tChart1.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; // // // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(178)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(128))))); this.tChart1.Series.Add(this.lineSeries1); this.tChart1.Size = new System.Drawing.Size(300, 156); this.tChart1.TabIndex = 0; this.tChart1.Tools.Add(this.cursorSRC); // // lineSeries1 // // // // this.lineSeries1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.lineSeries1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.lineSeries1.ColorEach = false; this.lineSeries1.Cursor = System.Windows.Forms.Cursors.Cross; // // // this.lineSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); // // // // // // this.lineSeries1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.lineSeries1.Marks.Callout.ArrowHeadSize = 8; // // // this.lineSeries1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.lineSeries1.Marks.Callout.Distance = 0; this.lineSeries1.Marks.Callout.Draw3D = false; this.lineSeries1.Marks.Callout.Length = 10; this.lineSeries1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries1.Marks.Callout.Visible = false; // // // this.lineSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries1.Title = "lineSeries1"; // // // this.lineSeries1.XValues.DataMember = "X"; this.lineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.lineSeries1.YValues.DataMember = "Y"; // // cursorSRC // this.cursorSRC.Change += new Steema.TeeChart.Tools.CursorChangeEventHandler(this.cursorSRC_Change); // // checkBox1 // this.checkBox1.Checked = true; this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Location = new System.Drawing.Point(13, 14); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(99, 21); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "&Follow mouse"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // tChart2 // // // // this.tChart2.Aspect.View3D = false; this.tChart2.Aspect.ZOffset = 0; this.tChart2.BackColor = System.Drawing.Color.Transparent; this.tChart2.Dock = System.Windows.Forms.DockStyle.Fill; // // // this.tChart2.Header.Lines = new string[] { "tChart2" }; // // // this.tChart2.Legend.Visible = false; this.tChart2.Location = new System.Drawing.Point(300, 0); this.tChart2.Name = "tChart2"; // // // // // // this.tChart2.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None; // // // this.tChart2.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.tChart2.Series.Add(this.lineSeries2); this.tChart2.Size = new System.Drawing.Size(126, 156); this.tChart2.TabIndex = 1; this.tChart2.Tools.Add(this.cursorDEST); // // lineSeries2 // // // // this.lineSeries2.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.lineSeries2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.lineSeries2.ColorEach = false; this.lineSeries2.Cursor = System.Windows.Forms.Cursors.Cross; // // // this.lineSeries2.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); // // // // // // this.lineSeries2.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.lineSeries2.Marks.Callout.ArrowHeadSize = 8; // // // this.lineSeries2.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.lineSeries2.Marks.Callout.Distance = 0; this.lineSeries2.Marks.Callout.Draw3D = false; this.lineSeries2.Marks.Callout.Length = 10; this.lineSeries2.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries2.Marks.Callout.Visible = false; // // // this.lineSeries2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries2.Title = "lineSeries2"; // // // this.lineSeries2.XValues.DataMember = "X"; this.lineSeries2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.lineSeries2.YValues.DataMember = "Y"; // // cursorDEST // this.cursorDEST.Change += new Steema.TeeChart.Tools.CursorChangeEventHandler(this.cursorDEST_Change); // // checkBox2 // this.checkBox2.Checked = true; this.checkBox2.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox2.Location = new System.Drawing.Point(127, 14); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(86, 21); this.checkBox2.TabIndex = 1; this.checkBox2.Text = "&Synchronize"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(220, 17); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(22, 13); this.label1.TabIndex = 2; this.label1.Text = "0,0"; this.label1.UseMnemonic = false; // // Tool_CursorSynchro // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(426, 258); this.Name = "Tool_CursorSynchro"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.panel2.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { // Do something with the row var row = indexPath.Row; Settings.SelectedIndex = row; tableView.CellAt(indexPath).Accessory = UITableViewCellAccessory.Checkmark; // Applies the selected Tool switch (row) { case 0: _controller.chart.Tools.Add(new Steema.TeeChart.Tools.Annotation()); int i = _controller.chart.Tools.Count - 1; (_controller.chart.Tools[i] as Steema.TeeChart.Tools.Annotation).Text = "My Annotation"; (_controller.chart.Tools[i] as Steema.TeeChart.Tools.Annotation).Top = 50; (_controller.chart.Tools[i] as Steema.TeeChart.Tools.Annotation).Shape.Left = 100; (_controller.chart.Tools[i] as Steema.TeeChart.Tools.Annotation).Shape.Font.Size = 15; break; case 1: _controller.chart.Tools.Add(new Steema.TeeChart.Tools.ChartImage()); (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.ChartImage).Image = UIImage.FromFile("SeriesIcons/line.png").CGImage; break; case 2: _controller.chart.Chart.Series.RemoveAllSeries(); _controller.chart.Chart.Aspect.ClipPoints = false; _controller.chart.Chart.Series.Add(new Steema.TeeChart.Styles.Line()); _controller.chart.Chart.Series.Add(new Steema.TeeChart.Styles.Line()); _controller.chart.Chart.Series[0].FillSampleValues(4); _controller.chart.Chart.Series[1].FillSampleValues(4); _controller.chart.Chart.Legend.LegendStyle = Steema.TeeChart.LegendStyles.Values; _controller.chart.Chart.Legend.Visible = true; _controller.chart.Tools.Add(new Steema.TeeChart.Tools.ExtraLegend()); _controller.chart.Legend.Visible = true; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.ExtraLegend).Series = _controller.chart.Series[1]; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.ExtraLegend).Legend.LegendStyle = Steema.TeeChart.LegendStyles.Values; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.ExtraLegend).Legend.Left = 100; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.ExtraLegend).Legend.Top = 100; break; case 3: _controller.chart.Tools.Add(new Steema.TeeChart.Tools.GridBand()); (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.GridBand).Axis = _controller.chart.Axes.Left; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.GridBand).Band1.Color = UIColor.Gray.CGColor; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.GridBand).Band2.Color = UIColor.DarkGray.CGColor; break; case 4: _controller.chart.Tools.Add(new Steema.TeeChart.Tools.GridTranspose()); // should be a surface serues break; case 5: _controller.chart.Tools.Add(new Steema.TeeChart.Tools.Rotate()); break; case 6: _controller.chart.Chart.Series.RemoveAllSeries(); _controller.chart.Chart.Aspect.ClipPoints = true; _controller.chart.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; _controller.chart.Chart.Series.Add(new Steema.TeeChart.Styles.Bar()); _controller.chart.Chart.Series[0].Add(10); _controller.chart.Chart.Series[0].Add(20); _controller.chart.Chart.Series[0].Add(50); _controller.chart.Chart.Series[0].Add(14); _controller.chart.Chart.Series[0].Add(5); _controller.chart.Chart.Series[0].Add(40); _controller.chart.Tools.Add(new Steema.TeeChart.Tools.ColorLine()); (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.ColorLine).Axis = _controller.chart.Axes.Left; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.ColorLine).Value = 30; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.ColorLine).Pen.Width = 2; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.ColorLine).Pen.Color = UIColor.Red.CGColor; break; case 7: _controller.chart.Chart.Series.RemoveAllSeries(); _controller.chart.Chart.Aspect.ClipPoints = true; _controller.chart.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; _controller.chart.Chart.Series.Add(new Steema.TeeChart.Styles.Line()); _controller.chart.Chart.Series[0].Add(10); _controller.chart.Chart.Series[0].Add(20); _controller.chart.Chart.Series[0].Add(50); _controller.chart.Chart.Series[0].Add(14); _controller.chart.Chart.Series[0].Add(5); _controller.chart.Chart.Series[0].Add(40); _controller.chart.Tools.Add(new Steema.TeeChart.Tools.ColorBand()); (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.ColorBand).Axis = _controller.chart.Axes.Left; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.ColorBand).Start = 20; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.ColorBand).End = 36; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.ColorBand).Pen.Width = 2; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.ColorBand).Pen.Color = UIColor.Red.CGColor; break; case 8: _controller.chart.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; Steema.TeeChart.TChart c = _controller.chart; c.Chart.Series.RemoveAllSeries(); c.Chart.Series.Add(new Steema.TeeChart.Styles.Line()); c.Chart.Series.Add(new Steema.TeeChart.Styles.Line()); c.Chart.Series[0].FillSampleValues(); c.Chart.Series[1].FillSampleValues(); _controller.chart.Tools.Add(new Steema.TeeChart.Tools.SeriesBandTool()); (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.SeriesBandTool).Series = c.Chart.Series[0]; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.SeriesBandTool).Series2 = c.Chart.Series[1]; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.SeriesBandTool).Gradient.Visible = true; break; case 9: _controller.chart.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; _controller.chart.Tools.Add(new Steema.TeeChart.Tools.SubChartTool()); (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.SubChartTool).Charts.AddChart("My SubChart"); (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.SubChartTool).Charts[0].Chart.Series.Add(new Steema.TeeChart.Styles.Area()); (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.SubChartTool).Charts[0].Chart.Series[0].FillSampleValues(4); break; case 10: Steema.TeeChart.TChart cc = _controller.chart; cc.Chart.Series.RemoveAllSeries(); cc.Chart.Series.Add(new Steema.TeeChart.Styles.Line()); cc.Chart.Series[0].Add(100); cc.Chart.Series[0].Add(300); cc.Chart.Series[0].Add(600); cc.Chart.Series[0].Add(800); cc.Chart.Series[0].Add(700); cc.Chart.Series[0].Add(200); cc.Chart.Aspect.View3D = false; _controller.chart.Tools.Add(new Steema.TeeChart.Tools.SeriesRegionTool()); (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.SeriesRegionTool).Series = cc.Chart.Series[0]; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.SeriesRegionTool).UseOrigin = true; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.SeriesRegionTool).Origin = 500; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.SeriesRegionTool).Color = UIColor.Yellow.CGColor; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.SeriesRegionTool).Transparency = 50; break; case 11: Steema.TeeChart.TChart c2 = _controller.chart; c2.Chart.Series.RemoveAllSeries(); c2.Chart.Series.Add(new Steema.TeeChart.Styles.Surface()); c2.Chart.Series[0].FillSampleValues(); c2.Chart.Legend.Visible = true; _controller.chart.Tools.Add(new Steema.TeeChart.Tools.LegendPalette()); (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.LegendPalette).Series = c2.Chart.Series[0]; break; case 12: Steema.TeeChart.TChart c3 = _controller.chart; c3.Chart.Series.RemoveAllSeries(); c3.Chart.Series.Add(new Steema.TeeChart.Styles.Line()); c3.Chart.Series[0].FillSampleValues(100); c3.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; c3.Chart.Aspect.View3D = false; _controller.chart.Tools.Add(new Steema.TeeChart.Tools.AxisBreaksTool()); (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.AxisBreaksTool).Axis = c3.Axes.Bottom; (_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.AxisBreaksTool).GapSize = 20; Steema.TeeChart.Tools.AxisBreak break1 = new Steema.TeeChart.Tools.AxisBreak((_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.AxisBreaksTool)); Steema.TeeChart.Tools.AxisBreak break2 = new Steema.TeeChart.Tools.AxisBreak((_controller.chart.Tools[_controller.chart.Tools.Count - 1] as Steema.TeeChart.Tools.AxisBreaksTool)); break1.StartValue = 20; break1.EndValue = 30; break2.StartValue = 50; break2.EndValue = 60; break; case 13: //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.DataTableTool()); //(_controller.chart.Tools[_controller.chart.Tools.Count-1] as Steema.TeeChart.Tools.DataTableTool).TableLegend.Visible=true; break; case 14: break; case 15: break; case 16: break; case 17: break; case 18: break; case 19: break; case 20: break; case 21: break; case 22: break; case 23: break; case 24: break; case 25: break; case 26: break; case 27: break; case 28: break; case 29: //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.MarksTip()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.NearestPoint()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.PageNumber()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.PieTool()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.LegendScrollBar()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.SeriesAnimation()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.SurfaceNearestTool()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.CursorTool()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.DragMarks()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.AxisArrow()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.DrawLine()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.DragPoint()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.GanttTool()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.AxisScroll()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.SeriesHotspot()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.ZoomTool()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.ScrollTool()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.LightTool()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.FibonacciTool()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.Marker()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.FaderTool()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.RectangleTool()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.Selector()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.SeriesStats()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.SeriesTranspose()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.ClipSeries()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.BannerTool()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.Magnify()); //_controller.chart.Tools.Add(new Steema.TeeChart.Tools.CustomHotspot()); break; case 30: break; case 31: break; case 32: break; case 33: break; case 34: break; case 35: break; case 36: break; case 37: break; case 38: break; case 39: break; case 40: break; case 41: break; case 42: break; default: break; } _controller.chart.Chart.Invalidate(); // Console.WriteLine("{0} selected",_controller.Items[row]); // This is what the Settings does under Settings>Mail>Show on an iPhone tableView.DeselectRow(indexPath, false); _controller.NavigationController.PopToViewController(_controller.chartController, true); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TimeSeriesHydrographEditor)); Reclamation.Core.MonthDayRange monthDayRange1 = new Reclamation.Core.MonthDayRange(); this.comboBoxInputs = new System.Windows.Forms.ComboBox(); this.buttonUpload = new System.Windows.Forms.Button(); this.linkLabelChartDetails = new System.Windows.Forms.LinkLabel(); this.buttonDownload = new System.Windows.Forms.Button(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.checkBoxShowBadData = new System.Windows.Forms.CheckBox(); this.checkBoxShowPoints = new System.Windows.Forms.CheckBox(); this.panelGraphTable = new System.Windows.Forms.Panel(); this.splitter1 = new System.Windows.Forms.Splitter(); this.tChart1 = new Steema.TeeChart.TChart(); this.labelFileName = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.buttonOpenFile = new System.Windows.Forms.Button(); this.linkLabelUsgs = new System.Windows.Forms.LinkLabel(); this.yearSelector1 = new Reclamation.TimeSeries.Forms.YearSelector(); this.monthRangePicker1 = new Reclamation.TimeSeries.Forms.MonthRangePicker(); this.checkBoxWaterYear = new System.Windows.Forms.CheckBox(); this.checkBoxCelsius = new System.Windows.Forms.CheckBox(); this.panelGraphTable.SuspendLayout(); this.SuspendLayout(); // // comboBoxInputs // this.comboBoxInputs.Location = new System.Drawing.Point(3, 28); this.comboBoxInputs.Name = "comboBoxInputs"; this.comboBoxInputs.Size = new System.Drawing.Size(349, 24); this.comboBoxInputs.TabIndex = 23; this.toolTip1.SetToolTip(this.comboBoxInputs, "example: JCK AF, AMF AF"); this.comboBoxInputs.SelectedIndexChanged += new System.EventHandler(this.comboBoxInputs_SelectedIndexChanged); this.comboBoxInputs.KeyDown += new System.Windows.Forms.KeyEventHandler(this.comboBoxInputs_KeyDown); // // buttonUpload // this.buttonUpload.BackColor = System.Drawing.SystemColors.Control; this.buttonUpload.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonUpload.ForeColor = System.Drawing.SystemColors.ControlText; this.buttonUpload.Location = new System.Drawing.Point(352, 64); this.buttonUpload.Name = "buttonUpload"; this.buttonUpload.Size = new System.Drawing.Size(75, 23); this.buttonUpload.TabIndex = 21; this.buttonUpload.Text = "Save"; this.buttonUpload.UseVisualStyleBackColor = false; this.buttonUpload.Visible = false; // // linkLabelChartDetails // this.linkLabelChartDetails.Location = new System.Drawing.Point(196, 66); this.linkLabelChartDetails.Name = "linkLabelChartDetails"; this.linkLabelChartDetails.Size = new System.Drawing.Size(72, 23); this.linkLabelChartDetails.TabIndex = 18; this.linkLabelChartDetails.TabStop = true; this.linkLabelChartDetails.Text = "chart details"; this.linkLabelChartDetails.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabelChartDetails_LinkClicked); // // buttonDownload // this.buttonDownload.ForeColor = System.Drawing.SystemColors.ControlText; this.buttonDownload.Location = new System.Drawing.Point(272, 64); this.buttonDownload.Name = "buttonDownload"; this.buttonDownload.Size = new System.Drawing.Size(75, 23); this.buttonDownload.TabIndex = 16; this.buttonDownload.Text = "Refresh"; this.buttonDownload.Click += new System.EventHandler(this.RefreshClick); this.buttonDownload.KeyDown += new System.Windows.Forms.KeyEventHandler(this.buttonDownload_KeyDown); // // checkBoxShowBadData // this.checkBoxShowBadData.AutoSize = true; this.checkBoxShowBadData.Checked = true; this.checkBoxShowBadData.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxShowBadData.Location = new System.Drawing.Point(358, 24); this.checkBoxShowBadData.Name = "checkBoxShowBadData"; this.checkBoxShowBadData.Size = new System.Drawing.Size(150, 21); this.checkBoxShowBadData.TabIndex = 32; this.checkBoxShowBadData.Text = "graph flagged data"; this.checkBoxShowBadData.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.toolTip1.SetToolTip(this.checkBoxShowBadData, "show data that has been \'flagged\' bad"); this.checkBoxShowBadData.UseVisualStyleBackColor = true; this.checkBoxShowBadData.CheckedChanged += new System.EventHandler(this.checkBoxShowBadData_CheckedChanged); // // checkBoxShowPoints // this.checkBoxShowPoints.AutoSize = true; this.checkBoxShowPoints.Location = new System.Drawing.Point(358, 39); this.checkBoxShowPoints.Name = "checkBoxShowPoints"; this.checkBoxShowPoints.Size = new System.Drawing.Size(104, 21); this.checkBoxShowPoints.TabIndex = 33; this.checkBoxShowPoints.Text = "show points"; this.checkBoxShowPoints.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.toolTip1.SetToolTip(this.checkBoxShowPoints, "show point on graph for each timestamp"); this.checkBoxShowPoints.UseVisualStyleBackColor = true; this.checkBoxShowPoints.CheckedChanged += new System.EventHandler(this.checkBoxShowPoints_CheckedChanged); // // panelGraphTable // this.panelGraphTable.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panelGraphTable.Controls.Add(this.splitter1); this.panelGraphTable.Controls.Add(this.tChart1); this.panelGraphTable.Location = new System.Drawing.Point(0, 88); this.panelGraphTable.Name = "panelGraphTable"; this.panelGraphTable.Size = new System.Drawing.Size(929, 393); this.panelGraphTable.TabIndex = 27; // // splitter1 // this.splitter1.Location = new System.Drawing.Point(510, 0); this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(6, 393); this.splitter1.TabIndex = 4; this.splitter1.TabStop = false; // // tChart1 // // // // this.tChart1.Aspect.View3D = false; this.tChart1.Aspect.ZOffset = 0D; // // // // // // // // // this.tChart1.Axes.Bottom.Title.Transparent = true; // // // // // // this.tChart1.Axes.Depth.Title.Transparent = true; // // // // // // this.tChart1.Axes.DepthTop.Title.Transparent = true; // // // // // // this.tChart1.Axes.Left.Title.Transparent = true; // // // // // // this.tChart1.Axes.Right.Title.Transparent = true; // // // // // // this.tChart1.Axes.Top.Title.Transparent = true; this.tChart1.Dock = System.Windows.Forms.DockStyle.Left; this.tChart1.Location = new System.Drawing.Point(0, 0); this.tChart1.Name = "tChart1"; this.tChart1.Size = new System.Drawing.Size(510, 393); this.tChart1.TabIndex = 3; this.tChart1.Click += new System.EventHandler(this.tChart1_Click); this.tChart1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.tChart1_MouseUp); // // labelFileName // this.labelFileName.AutoSize = true; this.labelFileName.Location = new System.Drawing.Point(101, 7); this.labelFileName.Name = "labelFileName"; this.labelFileName.Size = new System.Drawing.Size(46, 17); this.labelFileName.TabIndex = 29; this.labelFileName.Text = "label2"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(49, 7); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(61, 17); this.label2.TabIndex = 30; this.label2.Text = "filename"; // // buttonOpenFile // this.buttonOpenFile.Image = ((System.Drawing.Image)(resources.GetObject("buttonOpenFile.Image"))); this.buttonOpenFile.Location = new System.Drawing.Point(10, 6); this.buttonOpenFile.Name = "buttonOpenFile"; this.buttonOpenFile.Size = new System.Drawing.Size(35, 18); this.buttonOpenFile.TabIndex = 31; this.buttonOpenFile.UseVisualStyleBackColor = true; this.buttonOpenFile.Click += new System.EventHandler(this.buttonOpenFile_Click); // // linkLabelUsgs // this.linkLabelUsgs.Location = new System.Drawing.Point(17, 62); this.linkLabelUsgs.Name = "linkLabelUsgs"; this.linkLabelUsgs.Size = new System.Drawing.Size(132, 23); this.linkLabelUsgs.TabIndex = 35; this.linkLabelUsgs.TabStop = true; this.linkLabelUsgs.Text = "usgs"; this.linkLabelUsgs.Visible = false; this.linkLabelUsgs.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabelUsgs_LinkClicked); // // yearSelector1 // this.yearSelector1.Location = new System.Drawing.Point(479, 64); this.yearSelector1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.yearSelector1.Name = "yearSelector1"; this.yearSelector1.SelectedYears = new int[] { 1977, 2001, 2005 }; this.yearSelector1.Size = new System.Drawing.Size(289, 20); this.yearSelector1.TabIndex = 37; // // monthRangePicker1 // this.monthRangePicker1.BeginningMonth = 10; this.monthRangePicker1.Location = new System.Drawing.Point(497, 24); this.monthRangePicker1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.monthRangePicker1.MonthDayRange = monthDayRange1; this.monthRangePicker1.Name = "monthRangePicker1"; this.monthRangePicker1.Size = new System.Drawing.Size(428, 34); this.monthRangePicker1.TabIndex = 36; // // checkBoxWaterYear // this.checkBoxWaterYear.AutoSize = true; this.checkBoxWaterYear.Checked = true; this.checkBoxWaterYear.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxWaterYear.Location = new System.Drawing.Point(497, 1); this.checkBoxWaterYear.Name = "checkBoxWaterYear"; this.checkBoxWaterYear.Size = new System.Drawing.Size(96, 21); this.checkBoxWaterYear.TabIndex = 38; this.checkBoxWaterYear.Text = "water year"; this.checkBoxWaterYear.UseVisualStyleBackColor = true; this.checkBoxWaterYear.CheckedChanged += new System.EventHandler(this.checkBoxWaterYear_CheckedChanged); // // checkBoxCelsius // this.checkBoxCelsius.AutoSize = true; this.checkBoxCelsius.Location = new System.Drawing.Point(584, 1); this.checkBoxCelsius.Name = "checkBoxCelsius"; this.checkBoxCelsius.Size = new System.Drawing.Size(257, 21); this.checkBoxCelsius.TabIndex = 39; this.checkBoxCelsius.Text = "display water temperature in Celsius"; this.checkBoxCelsius.UseVisualStyleBackColor = true; // // TimeSeriesHydrographEditor // this.Controls.Add(this.checkBoxCelsius); this.Controls.Add(this.checkBoxWaterYear); this.Controls.Add(this.yearSelector1); this.Controls.Add(this.monthRangePicker1); this.Controls.Add(this.linkLabelUsgs); this.Controls.Add(this.checkBoxShowPoints); this.Controls.Add(this.checkBoxShowBadData); this.Controls.Add(this.buttonOpenFile); this.Controls.Add(this.label2); this.Controls.Add(this.labelFileName); this.Controls.Add(this.panelGraphTable); this.Controls.Add(this.buttonUpload); this.Controls.Add(this.comboBoxInputs); this.Controls.Add(this.linkLabelChartDetails); this.Controls.Add(this.buttonDownload); this.Name = "TimeSeriesHydrographEditor"; this.Size = new System.Drawing.Size(929, 481); this.Load += new System.EventHandler(this.TimeSeriesEditor_Load); this.panelGraphTable.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); chart = new Steema.TeeChart.TChart(ApplicationContext); chart.Zoom.Style = Steema.TeeChart.ZoomStyles.Classic; var myTheme = new Steema.TeeChart.Themes.BlackIsBackTheme(chart.Chart); myTheme.Apply(); Bundle extras = Intent.Extras; int seriesType = extras.GetInt("SeriesPosition"); var tmp = Steema.TeeChart.Utils.SeriesTypesOf [seriesType]; Steema.TeeChart.Styles.Series series; this.Title = tmp.ToString().Replace("Steema.TeeChart.Styles.", ""); //Some series can not work without a parent chart due to internal structure. if (tmp.Name == "TreeMap") { series = new Steema.TeeChart.Styles.TreeMap(chart.Chart); } else if (tmp.Name == "PolarGrid") { series = new Steema.TeeChart.Styles.PolarGrid(chart.Chart); } else { series = chart.Series.Add(tmp); } series.FillSampleValues(); chart.Aspect.View3D = Needs3D(chart[0]); //chart.Panel.Transparent = true; if (chart[0] is Steema.TeeChart.Styles.Circular) { (chart[0] as Steema.TeeChart.Styles.Circular).Circled = true; } if (chart[0] is Steema.TeeChart.Styles.Pie) { var pie = (Steema.TeeChart.Styles.Pie)chart[0]; pie.Marks.Visible = false; pie.BevelPercent = 25; pie.Pen.Visible = false; pie.EdgeStyle = Steema.TeeChart.Drawing.EdgeStyles.Flat; pie.Circled = true; pie.FillSampleValues(6); chart.Legend.Visible = true; chart.Legend.Font.Size = 15; chart.Legend.Transparency = 30; chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; chart.Aspect.View3D = true; chart.Aspect.VertOffset = -20; chart.Aspect.Elevation = 300; if (!(pie is Steema.TeeChart.Styles.Donut)) { chart.Aspect.Chart3DPercent = 30; pie.BevelPercent = 15; chart.Legend.Transparent = true; chart.Legend.Font.Size = 16; } chart.Header.Text = "Touch a slice to explode it"; chart.Legend.Visible = false; } if (chart[0] is Steema.TeeChart.Styles.Gantt || chart[0] is Steema.TeeChart.Styles.Funnel) { chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; } if (chart[0] is Steema.TeeChart.Styles.Custom3DPalette) { if (!(chart[0] is Steema.TeeChart.Styles.Contour) && !(chart[0] is Steema.TeeChart.Styles.ColorGrid) && !(chart[0] is Steema.TeeChart.Styles.Ternary) && !(chart[0] is Steema.TeeChart.Styles.BubbleCloud)) { chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; chart.Legend.Font.Size = 30; chart.Legend.Visible = false; chart.Header.Text = "Drag to rotate"; chart.Header.Font.Size = 30; chart.Walls.Visible = false; if (chart[0] is Steema.TeeChart.Styles.TriSurface) { chart.Aspect.Chart3DPercent = 30; } else { chart.Axes.Bottom.Increment = 1; chart.Aspect.Orthogonal = false; chart.Aspect.Chart3DPercent = 70; chart.Aspect.Rotation = 310; chart.Aspect.Zoom = 70; chart.Aspect.Perspective = 100; } chart.Tools.Add(new Steema.TeeChart.Tools.Rotate()); } else if (chart[0] is Steema.TeeChart.Styles.Contour) { ((Steema.TeeChart.Styles.Custom3DPalette)chart[0]).Pen.Width = 3; ((Steema.TeeChart.Styles.Contour)chart[0]).FillLevels = true; } else if (chart[0] is Steema.TeeChart.Styles.BubbleCloud) { chart.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; } ((Steema.TeeChart.Styles.Custom3DPalette)chart[0]).UseColorRange = false; ((Steema.TeeChart.Styles.Custom3DPalette)chart[0]).UsePalette = true; ((Steema.TeeChart.Styles.Custom3DPalette)chart[0]).PaletteStyle = Steema.TeeChart.Styles.PaletteStyles.Strong; } if ((chart[0] is Steema.TeeChart.Styles.Pie) || (chart[0] is Steema.TeeChart.Styles.CircularGauge) || (chart[0] is Steema.TeeChart.Styles.CustomGauge)) { chart.ClickSeries += chart_ClickSeries; } else { chart.ClickSeries -= chart_ClickSeries; } //if (((chart[0] is Steema.TeeChart.Styles.Line) || (chart[0] is Steema.TeeChart.Styles.Points)) // && !(chart[0] is Steema.TeeChart.Styles.Bubble)) //{ // chart.Header.Text = "Touch series for tool tip"; // chart.ClickSeries += chart_ClickSeries; //} //else //{ // chart.ClickSeries -= chart_ClickSeries; //} SetContentView(chart); }
/// <summary> /// Method to initialize Steema chart component for displaying contingency table /// </summary> private void InitializeGraph() { this.ResultBrowserSplit.Panel2.SuspendLayout(); this.ResultBrowserSplit.SuspendLayout(); this.SuspendLayout(); this.ContingencyTableChart = new Steema.TeeChart.TChart(); this.ContingencyTableChart.Dock = System.Windows.Forms.DockStyle.Fill; this.ContingencyTableChart.Header.Lines = new string[] { "tChart1"}; this.ContingencyTableChart.Location = new System.Drawing.Point(0, 0); this.ContingencyTableChart.Name = "tChart1"; this.ContingencyTableChart.Header.Visible = true; this.ContingencyTableChart.Size = new System.Drawing.Size(466, 286); this.ContingencyTableChart.GetAxisLabel += new Steema.TeeChart.GetAxisLabelEventHandler(ContingencyTableChart_GetAxisLabel); this.ContingencyTableChart.Axes.Depth.Visible = true; this.ContingencyTableChart.ContextMenuStrip = this.ContextMenuGraphRightClick; // this.ContingencyTableChart.Page.MaxPointsPerPage = 8; this.ResultBrowserSplit.Panel2.Controls.Add(ContingencyTableChart); this.ResultBrowserSplit.Panel2.ResumeLayout(false); this.ResultBrowserSplit.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this.tChart1 = new Steema.TeeChart.TChart(); this.line1 = new Steema.TeeChart.Styles.Line(); this.line2 = new Steema.TeeChart.Styles.Line(); this.cursorTool1 = new Steema.TeeChart.Tools.CursorTool(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // tChart1 // // // // this.tChart1.Aspect.View3D = false; // // // // // // // // // this.tChart1.Axes.Bottom.AxisPen.Width = 1; // // // this.tChart1.Axes.Bottom.Grid.Visible = false; // // // // // // this.tChart1.Axes.Left.AxisPen.Width = 0; this.tChart1.Axes.Left.Increment = 100D; this.tChart1.Cursor = System.Windows.Forms.Cursors.Default; // // // this.tChart1.Header.Lines = new string[] { "TeeChart" }; // // // // // // this.tChart1.Legend.Shadow.Visible = false; this.tChart1.Location = new System.Drawing.Point(16, 8); this.tChart1.Name = "tChart1"; // // // // // // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Series.Add(this.line1); this.tChart1.Series.Add(this.line2); this.tChart1.Size = new System.Drawing.Size(496, 304); this.tChart1.TabIndex = 0; this.tChart1.Tools.Add(this.cursorTool1); // // // // // // this.tChart1.Walls.Back.Visible = false; // // line1 // // // // this.line1.Brush.Color = System.Drawing.Color.Red; this.line1.Title = "line1"; // // line2 // // // // this.line2.Brush.Color = System.Drawing.Color.Green; this.line2.Title = "line2"; // // cursorTool1 // this.cursorTool1.Style = Steema.TeeChart.Tools.CursorToolStyles.Vertical; this.cursorTool1.Change += new Steema.TeeChart.Tools.CursorChangeEventHandler(this.cursorTool1_Change); // // label1 // this.label1.Location = new System.Drawing.Point(16, 320); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(320, 24); this.label1.TabIndex = 1; this.label1.Text = "label1"; // // label2 // this.label2.Location = new System.Drawing.Point(16, 352); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(320, 24); this.label2.TabIndex = 2; this.label2.Text = "label2"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(528, 381); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.tChart1); this.Name = "Form1"; this.Text = "Cursor Show Values"; this.Load += new System.EventHandler(this.Form1_Load); this.ResumeLayout(false); }
private void AnimateSeries(Steema.TeeChart.TChart chart, int yl) { this.fy_Line.Add(DateTime.Now, yl); this.tChart_fy.Axes.Bottom.SetMinMax(dtnow, DateTime.Now.AddSeconds(20)); }
/// <summary> /// Method to initialize Steema chart component for displaying contingency table /// </summary> private void InitializeGraph() { this.TabPageBarChart.SuspendLayout(); this.SuspendLayout(); this.ColumnFrequencyBarChart = new Steema.TeeChart.TChart(); this.ColumnFrequencyBarChart.Dock = System.Windows.Forms.DockStyle.Fill; this.ColumnFrequencyBarChart.Header.Lines = new string[] { resManager.GetString("ColumnFrequencyBarChart") }; this.ColumnFrequencyBarChart.Location = new System.Drawing.Point(0, 0); this.ColumnFrequencyBarChart.Header.Visible = true; this.ColumnFrequencyBarChart.Aspect.View3D = false; this.ColumnFrequencyBarChart.Axes.Left.Labels.Style = Steema.TeeChart.AxisLabelStyle.Text; // this.ColumnFrequencyChart.DoubleClick += new EventHandler(tChart1_DoubleClick); this.ColumnFrequencyBarChart.Size = new System.Drawing.Size(466, 286); this.TabPageBarChart.Controls.Add(ColumnFrequencyBarChart); this.TabPageBarChart.ResumeLayout(false); this.ColumnFrequencyAreaChart = new Steema.TeeChart.TChart(); this.ColumnFrequencyAreaChart.Dock = System.Windows.Forms.DockStyle.Fill; this.ColumnFrequencyAreaChart.Header.Lines = new string[] { resManager.GetString("ColumnFrequencyAreaChart") }; this.ColumnFrequencyAreaChart.Location = new System.Drawing.Point(0, 0); this.ColumnFrequencyAreaChart.Header.Visible = true; this.ColumnFrequencyAreaChart.Aspect.View3D = false; this.ColumnFrequencyAreaChart.Axes.Left.Labels.Style = Steema.TeeChart.AxisLabelStyle.Text; this.ColumnFrequencyAreaChart.Size = new System.Drawing.Size(466, 286); this.TabPageAreaChart.Controls.Add(ColumnFrequencyAreaChart); this.ColumnFrequencyPieChart = new Steema.TeeChart.TChart(); this.ColumnFrequencyPieChart.Dock = System.Windows.Forms.DockStyle.Fill; this.ColumnFrequencyPieChart.Header.Lines = new string[] { resManager.GetString("ColumnFrequencyPieChart") }; this.ColumnFrequencyPieChart.Location = new System.Drawing.Point(0, 0); this.ColumnFrequencyPieChart.Header.Visible = true; this.ColumnFrequencyPieChart.Aspect.View3D = false; this.ColumnFrequencyPieChart.Axes.Left.Labels.Style = Steema.TeeChart.AxisLabelStyle.Text; this.ColumnFrequencyPieChart.Size = new System.Drawing.Size(466, 286); this.TabPagePieChart.Controls.Add(ColumnFrequencyPieChart); this.TabPagePieChart.ResumeLayout(false); this.ResumeLayout(false); }
// //********************************************************************************************** // public Boolean InitializeControl(System.Windows.Forms.PictureBox aPicture, System.Windows.Forms.RichTextBox aLog, System.Windows.Forms.ProgressBar aTimeBar, System.Windows.Forms.ProgressBar aPointBar, System.Windows.Forms.Button aBackgroundButton, System.Windows.Forms.Button aTextButton, System.Windows.Forms.Button aPrecipitationButton, System.Windows.Forms.Button aIrrigationButton, String aFile, String aPrecipitationFile, Boolean aIrrigationRequired, String aIrrigationFile, String aPPTFile, Boolean aPPTRequired, String aOutputDir, Steema.TeeChart.TChart achrtPrec1) { Boolean success = false; if (!Directory.Exists(aOutputDir)) { if (MessageBox.Show("Output dir " + aOutputDir + " does not exist. Create it?", "Error", MessageBoxButtons.YesNo) == DialogResult.Yes) { Directory.CreateDirectory(aOutputDir); } } if (Directory.Exists(aOutputDir)) { try { Running = false; brTimes = aTimeBar; PrecipitationFile = aPrecipitationFile; brPoints = aPointBar; LogBox = aLog; OutputDir = aOutputDir; LogBox.Clear(); LogBox.AppendText("Started at " + DateTime.Now.ToString() + "\n"); Top = new List<TPoint>(); Bottom = new List<TPoint>(); Left = new List<TPoint>(); Right = new List<TPoint>(); IrrigationRequired = aIrrigationRequired; IrrigationFile = aIrrigationFile; PPTFile = aPPTFile; PPTRequired = aPPTRequired; chrtPrec1 = achrtPrec1; PlotToShow = new List<TPlotToShow>(); if (PPTRequired) { PPT = new TPPT(); } DataManager.SaveToIniFile(aFile, aPrecipitationFile, aIrrigationFile, aOutputDir, aIrrigationRequired, aPPTRequired, aPPTFile); DataManager.ReadExcelFile(aFile); if (DataManager.ExcelIsAvailable) { SetDateFormat(); TotalBitmap = new Bitmap(800, 600); // TotalBitmap.SetResolution(300, 300); DataManager.ReadContourSheet(Top, Right, Bottom, Left); MyDrawing = new TDrawing(BackgroundColor, TextColor); // MyDrawing.DrawContours(Top, Right, Bottom, Left); MyGraph = Graphics.FromImage(TotalBitmap); Int32 NumberOfPlots = DataManager.ReadNumberOfPlots(); AssignmentMethod = DataManager.ReadAssignmentMethod(); Plot = new List<TPlot>(); for (Int32 i = 0; i < NumberOfPlots; i++) { TPlot MyPlot = new TPlot(i); MyPlot.AddBoundaries(Top, Bottom, Left, Right); MyPlot.AssignmentMethod = AssignmentMethod; Plot.Add(MyPlot); } DataManager.ReadPlotDescription(Plot); DataManager.ReadVisualization(PlotToShow); DistributePlots(); for (Int32 i = 0; i < NumberOfPlots; i++) { DataManager.ReadNodes(Plot[i].Node, i); DataManager.ReadElements(Plot[i].Node, Plot[i].Element, i); DataManager.ReadVirtualNodes(Plot[i].VirtualNode, i); } foreach (TPlotToShow MyPlot in PlotToShow) { Plot[MyPlot.PlotId].PrepareAndDrawGrid(MyPlot.ItemToVisualize); } DefineFirstAndLastNode(); CreateTotalBitmap(false); SaveGraph(OutputDir, -100); MoistureClass = new List<TMoistureClass>(); DerivedClass = new List<TDerivedClass>(); DataManager.ReadDerivativeTables(Plot); DataManager.ReadMoistureClasses(MoistureClass, DerivedClass); MyMoistureLegend = new TLegend(Color.Black, Color.White); MyMoistureLegend.SetDrawingArea(800, 600); MyMoistureLegend.DrawLegend(MoistureClass); MyDerivedLegend = new TLegend(Color.Black, Color.White); MyDerivedLegend.SetDrawingArea(800, 600); MyDerivedLegend.DrawDerivedLegend(DerivedClass); String FileName = SaveGraph(OutputDir, -10); if (PPTRequired) { PPT.AddPictureToSlide(FileName); } FileName = SaveGraph(OutputDir, -11); if (PPTRequired) { PPT.AddPictureToSlide(FileName); } MoistureContent = DataManager.ReadMoistureContents(); FindFirstAndLastDay(); PrecipitationInterval = DataManager.ReadPInterval(); ReadColors(aBackgroundButton, aTextButton, aPrecipitationButton, aIrrigationButton); DataManager.CloseExcelFile(); Precipitation = DataManager.ReadPrecipitation(PrecipitationFile, FirstDay, LastDay); if (IrrigationRequired) { Irrigation = DataManager.ReadIrrigation(IrrigationFile); } DataManager.QuitExcel(); chrtPrec2 = new Steema.TeeChart.TChart(); // precipitation Steema.TeeChart.Styles.Bar NewSeries = new Steema.TeeChart.Styles.Bar(); NewSeries.XValues.DateTime = true; NewSeries.Color = PrecipitationColor; NewSeries.Marks.Visible = false; NewSeries.Pen.Visible = false; chrtPrec2.Series.Add(NewSeries); // irrigation NewSeries = new Steema.TeeChart.Styles.Bar(); NewSeries.XValues.DateTime = true; NewSeries.Color = IrrigationColor; NewSeries.Marks.Visible = false; NewSeries.Pen.Visible = false; chrtPrec2.Series.Add(NewSeries); // line Steema.TeeChart.Styles.Line Line = new Steema.TeeChart.Styles.Line(); Line.Color = Color.Red; Line.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Right; Line.XValues.DateTime = true; chrtPrec2.Axes.Right.Automatic = false; chrtPrec2.Axes.Right.Minimum = 0.0; chrtPrec2.Axes.Right.Maximum = 1.0; chrtPrec2.Axes.Right.Visible = false; chrtPrec2.Series.Add(Line); // clear chrtPrec1.Series[0].Clear(); chrtPrec1.Series[1].Clear(); chrtPrec1.Series[2].Clear(); chrtPrec2.Series[0].Clear(); chrtPrec2.Series[1].Clear(); chrtPrec2.Series[2].Clear(); ShowPrecipitation(1); ShowPrecipitation(2); // MyDrawing.SaveGraph(OutputDir, -1); } LogBox.AppendText(@"Data read at " + DateTime.Now.ToString()); success = true; } catch (Exception e) { String ErrorMessage = @"Error in input data : " + e.Message; MessageBox.Show(ErrorMessage); LogBox.AppendText(ErrorMessage); } } return success; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.textBox1 = new System.Windows.Forms.TextBox(); this.panel1 = new System.Windows.Forms.Panel(); this.button2 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button(); this.textBox2 = new System.Windows.Forms.TextBox(); this.tChart1 = new Steema.TeeChart.TChart(); this.splitter1 = new System.Windows.Forms.Splitter(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.textBox1.Dock = System.Windows.Forms.DockStyle.Top; this.textBox1.Location = new System.Drawing.Point(0, 0); this.textBox1.Multiline = true; this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(496, 76); this.textBox1.TabIndex = 0; this.textBox1.Text = @"Creating charts is really easy to do. Just drop a Chart component on your form and double-click it to show the editor dialog. First steps with the editor dialog are clicking the Add button to choose a chart style (series) from the Gallery. Adding points to a series can be done by code or at design-time, linking the series to a database or function."; // // panel1 // this.panel1.Controls.Add(this.button2); this.panel1.Controls.Add(this.button1); this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 76); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(496, 36); this.panel1.TabIndex = 1; // // button2 // this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button2.Location = new System.Drawing.Point(247, 7); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(113, 23); this.button2.TabIndex = 1; this.button2.Text = "&Show Chart Editor"; this.button2.Click += new System.EventHandler(this.button2_Click); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(13, 7); this.button1.Name = "button1"; this.button1.TabIndex = 0; this.button1.Text = "&Run code"; this.button1.Click += new System.EventHandler(this.button1_Click); // // textBox2 // this.textBox2.Dock = System.Windows.Forms.DockStyle.Left; this.textBox2.Location = new System.Drawing.Point(0, 112); this.textBox2.Multiline = true; this.textBox2.Name = "textBox2"; this.textBox2.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.textBox2.Size = new System.Drawing.Size(296, 277); this.textBox2.TabIndex = 2; this.textBox2.Text = @"Run-time code to create charts: tChart1.Series.Clear(); tChart1.Series.Add(new Steema.TeeChart.Styles.Bar()); tChart1.Series[0].Clear(); tChart1.Series[0].Add(123, ""ABC"", Color.Red); tChart1.Series[0].Add( 456, ""DEF"", Color.Blue ); tChart1.Series[0].Add( 321, ""GHI"", Color.Green ); Change the bar Marks : tChart1.Series[0].Marks.Style = smsValue ; To show the editor dialog, use the following code: tChart1.ShowEditor();"; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; this.tChart1.Dock = System.Windows.Forms.DockStyle.Fill; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "Chart Example" }; // // tChart1.Legend // this.tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; this.tChart1.Location = new System.Drawing.Point(296, 112); this.tChart1.Name = "tChart1"; this.tChart1.Size = new System.Drawing.Size(200, 277); this.tChart1.TabIndex = 3; // // tChart1.Walls // // // tChart1.Walls.Bottom // // // tChart1.Walls.Bottom.Pen // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // tChart1.Walls.Left // // // tChart1.Walls.Left.Pen // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; // // splitter1 // this.splitter1.Location = new System.Drawing.Point(296, 112); this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(3, 277); this.splitter1.TabIndex = 4; this.splitter1.TabStop = false; // // Basic_Features // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(496, 389); this.Controls.Add(this.splitter1); this.Controls.Add(this.tChart1); this.Controls.Add(this.textBox2); this.Controls.Add(this.panel1); this.Controls.Add(this.textBox1); this.Name = "Basic_Features"; this.Text = "Basic_Features"; this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Welcome_All)); this.timer1 = new System.Timers.Timer(); this.panel1 = new System.Windows.Forms.Panel(); this.label8 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.pictureBox4 = new System.Windows.Forms.PictureBox(); this.pictureBox5 = new System.Windows.Forms.PictureBox(); this.tChart1 = new Steema.TeeChart.TChart(); this.lineSeries1 = new Steema.TeeChart.Styles.Line(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.label9 = new System.Windows.Forms.Label(); this.label10 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.timer1)).BeginInit(); this.panel1.SuspendLayout(); #if VS2005 ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit(); #endif this.SuspendLayout(); // // timer1 // this.timer1.Interval = 50; this.timer1.SynchronizingObject = this; this.timer1.Elapsed += new System.Timers.ElapsedEventHandler(this.timer1_Elapsed); // // panel1 // this.panel1.BackColor = System.Drawing.Color.White; this.panel1.Controls.Add(this.label10); this.panel1.Controls.Add(this.label9); this.panel1.Controls.Add(this.label8); this.panel1.Controls.Add(this.label7); this.panel1.Controls.Add(this.label6); this.panel1.Controls.Add(this.label5); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.pictureBox4); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(0, 15); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(489, 222); this.panel1.TabIndex = 6; // // label8 // this.label8.AutoSize = true; this.label8.BackColor = System.Drawing.Color.Transparent; this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label8.Location = new System.Drawing.Point(12, 54); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(219, 15); this.label8.TabIndex = 11; this.label8.Text = "WPF, Silverlight and Flex/Flash support"; this.label8.UseMnemonic = false; // // label7 // this.label7.AutoSize = true; this.label7.BackColor = System.Drawing.Color.Transparent; this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label7.Location = new System.Drawing.Point(12, 108); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(120, 15); this.label7.TabIndex = 10; this.label7.Text = "OpenGL Component"; this.label7.UseMnemonic = false; // // label6 // this.label6.AutoSize = true; this.label6.BackColor = System.Drawing.Color.Transparent; this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label6.Location = new System.Drawing.Point(12, 144); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(121, 15); this.label6.TabIndex = 9; this.label6.Text = "Extensive User Tools"; this.label6.UseMnemonic = false; // // label5 // this.label5.AutoSize = true; this.label5.BackColor = System.Drawing.Color.Transparent; this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label5.Location = new System.Drawing.Point(12, 126); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(342, 15); this.label5.TabIndex = 8; this.label5.Text = "Data aware. Supports SQLDataAdapter, Dataviews and tables"; this.label5.UseMnemonic = false; // // label4 // this.label4.AutoSize = true; this.label4.BackColor = System.Drawing.Color.Transparent; this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.Location = new System.Drawing.Point(12, 90); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(252, 15); this.label4.TabIndex = 7; this.label4.Text = "ASP.NET & Ajax support with WebForm Chart"; this.label4.UseMnemonic = false; // // label3 // this.label3.AutoSize = true; this.label3.BackColor = System.Drawing.Color.Transparent; this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.Location = new System.Drawing.Point(12, 72); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(315, 15); this.label3.TabIndex = 2; this.label3.Text = "Run-time Editor, Print-Preview, Gallery and Navigator bar"; this.label3.UseMnemonic = false; // // label2 // this.label2.AutoSize = true; this.label2.BackColor = System.Drawing.Color.Transparent; this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(12, 36); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(255, 15); this.label2.TabIndex = 1; this.label2.Text = "41 Functions (Standard, Financial, Statistical)."; this.label2.UseMnemonic = false; // // label1 // this.label1.AutoSize = true; this.label1.BackColor = System.Drawing.Color.Transparent; this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(12, 0); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(322, 15); this.label1.TabIndex = 0; this.label1.Text = "57 Chart styles (in 2D and 3D plus multiple combinations)."; this.label1.UseMnemonic = false; // // pictureBox4 // this.pictureBox4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.pictureBox4.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox4.Image"))); this.pictureBox4.Location = new System.Drawing.Point(0, 61); this.pictureBox4.Name = "pictureBox4"; this.pictureBox4.Size = new System.Drawing.Size(489, 161); this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox4.TabIndex = 6; this.pictureBox4.TabStop = false; // // pictureBox5 // this.pictureBox5.BackColor = System.Drawing.Color.White; this.pictureBox5.Dock = System.Windows.Forms.DockStyle.Top; this.pictureBox5.Location = new System.Drawing.Point(0, 0); this.pictureBox5.Name = "pictureBox5"; this.pictureBox5.Size = new System.Drawing.Size(489, 15); this.pictureBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.pictureBox5.TabIndex = 7; this.pictureBox5.TabStop = false; // // tChart1 // // // // this.tChart1.Aspect.Chart3DPercent = 10; this.tChart1.Aspect.Elevation = 360; this.tChart1.Aspect.ElevationFloat = 360; this.tChart1.Aspect.Perspective = 50; this.tChart1.Aspect.Rotation = 315; this.tChart1.Aspect.RotationFloat = 315; this.tChart1.Aspect.View3D = false; this.tChart1.Aspect.ZOffset = 0; this.tChart1.Aspect.Zoom = 102; this.tChart1.Aspect.ZoomFloat = 102; // // // // // // // // // this.tChart1.Axes.Bottom.Labels.Style = Steema.TeeChart.AxisLabelStyle.None; this.tChart1.Axes.Bottom.Visible = false; // // // // // // this.tChart1.Axes.Left.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); // // // this.tChart1.Axes.Left.Labels.CustomSize = 1; this.tChart1.Axes.Left.LogarithmicBase = 2; this.tChart1.Cursor = System.Windows.Forms.Cursors.Default; this.tChart1.Dock = System.Windows.Forms.DockStyle.Bottom; // // // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Header.Visible = false; // // // this.tChart1.Legend.Visible = false; this.tChart1.Location = new System.Drawing.Point(0, 237); this.tChart1.Name = "tChart1"; // // // // // // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(117)))), ((int)(((byte)(126)))), ((int)(((byte)(100))))); this.tChart1.Panel.Brush.Gradient.Visible = false; this.tChart1.Panel.MarginLeft = 0; this.tChart1.Panel.MarginRight = 2; this.tChart1.Series.Add(this.lineSeries1); this.tChart1.Size = new System.Drawing.Size(489, 113); this.tChart1.TabIndex = 4; this.tChart1.Tools.Add(this.gridBand1); this.tChart1.GetAxisLabel += new Steema.TeeChart.GetAxisLabelEventHandler(this.tChart1_GetAxisLabel); this.tChart1.AfterDraw += new Steema.TeeChart.PaintChartEventHandler(this.tChart1_AfterDraw); // // lineSeries1 // // // // this.lineSeries1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.lineSeries1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.lineSeries1.ColorEach = false; // // // this.lineSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98))))); this.lineSeries1.LinePen.Width = 2; // // // // // // this.lineSeries1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.lineSeries1.Marks.Callout.ArrowHeadSize = 8; // // // this.lineSeries1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.lineSeries1.Marks.Callout.Distance = 0; this.lineSeries1.Marks.Callout.Draw3D = false; this.lineSeries1.Marks.Callout.Length = 10; this.lineSeries1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries1.Marks.Callout.Visible = false; // // // this.lineSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.lineSeries1.Title = "line1"; // // // this.lineSeries1.XValues.DataMember = "X"; this.lineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.lineSeries1.YValues.DataMember = "Y"; // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); // // // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); // // label9 // this.label9.AutoSize = true; this.label9.BackColor = System.Drawing.Color.Transparent; this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(12, 18); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(194, 15); this.label9.TabIndex = 12; this.label9.Text = "6 Gauge and Knob template styles"; this.label9.UseMnemonic = false; // // label10 // this.label10.AutoSize = true; this.label10.BackColor = System.Drawing.Color.Transparent; this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label10.Location = new System.Drawing.Point(12, 162); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(184, 15); this.label10.TabIndex = 13; this.label10.Text = "PocketPC and WebMatrix Charts"; this.label10.UseMnemonic = false; // // Welcome_All // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(489, 350); this.Controls.Add(this.panel1); this.Controls.Add(this.tChart1); this.Controls.Add(this.pictureBox5); this.Name = "Welcome_All"; this.Text = "Welcome_All"; this.Load += new System.EventHandler(this.Welcome_All_Load); ((System.ComponentModel.ISupportInitialize)(this.timer1)).EndInit(); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); #if VS2005 ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit(); #endif this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.label1 = new System.Windows.Forms.Label(); this.lbThemes = new System.Windows.Forms.ListBox(); this.tChart1 = new Steema.TeeChart.TChart(); this.bar1 = new Steema.TeeChart.Styles.Bar(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Text = "TeeChart Themes enable rapid change of many chart properties with a single mouse " + "click. \r\n\r\nSeveral themes are provided through the Themes Editor and programatic" + "ally. \r\nCreating new themes by code is really simple."; // // panel1 // this.panel1.Controls.Add(this.button2); this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.label1); this.panel1.Name = "panel1"; // // panel2 // this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel2.Controls.Add(this.tChart1); this.panel2.Controls.Add(this.lbThemes); this.panel2.Dock = System.Windows.Forms.DockStyle.None; this.panel2.Name = "panel2"; // // label1 // this.label1.Location = new System.Drawing.Point(0, 24); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(100, 16); this.label1.TabIndex = 0; this.label1.Text = "Select Theme:"; // // lbThemes // this.lbThemes.Location = new System.Drawing.Point(0, 0); this.lbThemes.Name = "lbThemes"; this.lbThemes.Size = new System.Drawing.Size(88, 160); this.lbThemes.TabIndex = 0; this.lbThemes.SelectedIndexChanged += new System.EventHandler(this.lbThemes_SelectedIndexChanged); // // tChart1 // this.tChart1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "TeeChart" }; // // tChart1.Legend // // // tChart1.Legend.Brush // // // tChart1.Legend.Gradient // this.tChart1.Legend.Brush.Gradient.Visible = true; // // tChart1.Legend.Gradient // this.tChart1.Legend.Gradient.Visible = true; this.tChart1.Location = new System.Drawing.Point(88, 0); this.tChart1.Name = "tChart1"; this.tChart1.Series.Add(this.bar1); this.tChart1.Size = new System.Drawing.Size(344, 160); this.tChart1.TabIndex = 1; this.tChart1.Tools.Add(this.gridBand1); // // bar1 // // // bar1.Brush // this.bar1.Brush.Color = System.Drawing.Color.Red; this.bar1.ColorEach = true; // // bar1.Marks // // // bar1.Marks.Symbol // // // bar1.Marks.Symbol.Shadow // this.bar1.Marks.Symbol.Shadow.Height = 1; this.bar1.Marks.Symbol.Shadow.Visible = true; this.bar1.Marks.Symbol.Shadow.Width = 1; this.bar1.Title = "bar1"; // // bar1.XValues // this.bar1.XValues.DataMember = "X"; this.bar1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // bar1.YValues // this.bar1.YValues.DataMember = "Bar"; // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // gridBand1.Band1 // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224))); // // gridBand1.Band2 // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(120, 11); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(96, 23); this.button1.TabIndex = 1; this.button1.Text = "Theme Editor..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button2.Location = new System.Drawing.Point(256, 11); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(112, 23); this.button2.TabIndex = 2; this.button2.Text = "Apply by code"; this.button2.Click += new System.EventHandler(this.button2_Click); // // ChartThemes // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(426, 258); this.Name = "ChartThemes"; this.Text = "Chart Themes"; this.Load += new System.EventHandler(this.ChartThemes_Load); this.panel1.ResumeLayout(false); this.panel2.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.textBox1 = new System.Windows.Forms.TextBox(); this.panel1 = new System.Windows.Forms.Panel(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.label1 = new System.Windows.Forms.Label(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.panel2 = new System.Windows.Forms.Panel(); this.tChart3 = new Steema.TeeChart.TChart(); this.clockSeries3 = new Steema.TeeChart.Styles.Clock(); this.tChart2 = new Steema.TeeChart.TChart(); this.clockSeries2 = new Steema.TeeChart.Styles.Clock(); this.tChart1 = new Steema.TeeChart.TChart(); this.clockSeries1 = new Steema.TeeChart.Styles.Clock(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); this.panel2.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.textBox1.Dock = System.Windows.Forms.DockStyle.Top; this.textBox1.Location = new System.Drawing.Point(0, 0); this.textBox1.Multiline = true; this.textBox1.Name = "textBox1"; this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.textBox1.Size = new System.Drawing.Size(426, 48); this.textBox1.TabIndex = 2; this.textBox1.Text = "The Clock series displays live watches. Multiple configuration parameters are ava" + "ilable, like colors, numbering style, backgrounds, gradient, font, etc."; // // panel1 // this.panel1.Controls.Add(this.numericUpDown1); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.checkBox1); this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 48); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(426, 34); this.panel1.TabIndex = 3; // // numericUpDown1 // this.numericUpDown1.Location = new System.Drawing.Point(224, 8); this.numericUpDown1.Maximum = new decimal(new int[] { 10000, 0, 0, 0 }); this.numericUpDown1.Minimum = new decimal(new int[] { 1, 0, 0, 0 }); this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Size = new System.Drawing.Size(60, 20); this.numericUpDown1.TabIndex = 2; this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.numericUpDown1.Value = new decimal(new int[] { 1000, 0, 0, 0 }); this.numericUpDown1.TextChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(133, 10); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(84, 13); this.label1.TabIndex = 1; this.label1.Text = "&Refresh interval:"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // checkBox1 // this.checkBox1.Checked = true; this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Location = new System.Drawing.Point(13, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(114, 21); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "&Roman numbers"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // panel2 // this.panel2.Controls.Add(this.tChart3); this.panel2.Controls.Add(this.tChart2); this.panel2.Controls.Add(this.tChart1); this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; this.panel2.Location = new System.Drawing.Point(0, 82); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(426, 190); this.panel2.TabIndex = 4; // // tChart3 // // // // this.tChart3.Aspect.Elevation = 315; this.tChart3.Aspect.ElevationFloat = 315D; this.tChart3.Aspect.Orthogonal = false; this.tChart3.Aspect.Perspective = 0; this.tChart3.Aspect.Rotation = 360; this.tChart3.Aspect.RotationFloat = 360D; this.tChart3.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; this.tChart3.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias; this.tChart3.Aspect.View3D = false; // // // // // // this.tChart3.Axes.Bottom.Increment = 30D; this.tChart3.Axes.Visible = false; this.tChart3.Dock = System.Windows.Forms.DockStyle.Fill; // // // this.tChart3.Header.Lines = new string[] { "tChart3" }; this.tChart3.Header.Visible = false; this.tChart3.Location = new System.Drawing.Point(293, 0); this.tChart3.Name = "tChart3"; // // // // // // // // // this.tChart3.Panel.Brush.Gradient.Direction = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal; this.tChart3.Panel.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart3.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))); this.tChart3.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(64))))); this.tChart3.Panel.Brush.Gradient.UseMiddle = true; this.tChart3.Series.Add(this.clockSeries3); this.tChart3.Size = new System.Drawing.Size(133, 190); this.tChart3.TabIndex = 2; // // clockSeries3 // // // // this.clockSeries3.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.clockSeries3.Circled = true; this.clockSeries3.CircleLabels = true; this.clockSeries3.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.clockSeries3.ColorEach = false; // // // this.clockSeries3.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); // // // this.clockSeries3.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.clockSeries3.RotationAngle = 90; this.clockSeries3.ShowInLegend = false; this.clockSeries3.Title = "clockSeries3"; // // // this.clockSeries3.XValues.DataMember = "Angle"; this.clockSeries3.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.clockSeries3.YValues.DataMember = "Y"; // // tChart2 // // // // this.tChart2.Aspect.Elevation = 315; this.tChart2.Aspect.ElevationFloat = 315D; this.tChart2.Aspect.Orthogonal = false; this.tChart2.Aspect.Perspective = 0; this.tChart2.Aspect.Rotation = 360; this.tChart2.Aspect.RotationFloat = 360D; this.tChart2.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; this.tChart2.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias; this.tChart2.Aspect.View3D = false; // // // // // // this.tChart2.Axes.Bottom.Increment = 30D; this.tChart2.Axes.Visible = false; this.tChart2.Dock = System.Windows.Forms.DockStyle.Left; // // // this.tChart2.Header.Lines = new string[] { "tChart2" }; this.tChart2.Header.Visible = false; this.tChart2.Location = new System.Drawing.Point(147, 0); this.tChart2.Name = "tChart2"; // // // // // // // // // this.tChart2.Panel.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart2.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.tChart2.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.tChart2.Panel.Brush.Gradient.UseMiddle = true; this.tChart2.Series.Add(this.clockSeries2); this.tChart2.Size = new System.Drawing.Size(146, 190); this.tChart2.TabIndex = 1; // // clockSeries2 // // // // this.clockSeries2.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.clockSeries2.Circled = true; this.clockSeries2.CircleLabels = true; this.clockSeries2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.clockSeries2.ColorEach = false; // // // this.clockSeries2.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.clockSeries2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.clockSeries2.RotationAngle = 90; this.clockSeries2.ShowInLegend = false; this.clockSeries2.Title = "clockSeries2"; // // // this.clockSeries2.XValues.DataMember = "Angle"; this.clockSeries2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.clockSeries2.YValues.DataMember = "Y"; // // tChart1 // // // // this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.ElevationFloat = 315D; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.RotationFloat = 360D; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias; this.tChart1.Aspect.View3D = false; // // // // // // this.tChart1.Axes.Bottom.Increment = 30D; this.tChart1.Axes.Visible = false; this.tChart1.Dock = System.Windows.Forms.DockStyle.Left; // // // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Header.Visible = false; this.tChart1.Location = new System.Drawing.Point(0, 0); this.tChart1.Name = "tChart1"; // // // // // // // // // this.tChart1.Panel.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Panel.Brush.Gradient.GammaCorrection = true; this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))); this.tChart1.Panel.Brush.Gradient.Sigma = true; this.tChart1.Panel.Brush.Gradient.SigmaFocus = 0.496F; this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(198)))), ((int)(((byte)(0))))); this.tChart1.Panel.Brush.Gradient.UseMiddle = true; this.tChart1.Series.Add(this.clockSeries1); this.tChart1.Size = new System.Drawing.Size(147, 190); this.tChart1.TabIndex = 0; // // clockSeries1 // // // // this.clockSeries1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.clockSeries1.Circled = true; this.clockSeries1.CircleLabels = true; this.clockSeries1.CircleLabelsInside = true; // // // this.clockSeries1.CirclePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(149)))), ((int)(((byte)(134)))), ((int)(((byte)(0))))); this.clockSeries1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163))))); this.clockSeries1.ColorEach = false; // // // this.clockSeries1.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(222)))), ((int)(((byte)(204)))), ((int)(((byte)(0))))); this.clockSeries1.Pen.Visible = false; // // // this.clockSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.clockSeries1.RotationAngle = 90; this.clockSeries1.ShowInLegend = false; this.clockSeries1.Title = "clockSeries1"; // // // this.clockSeries1.XValues.DataMember = "Angle"; this.clockSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.clockSeries1.YValues.DataMember = "Y"; // // SeriesType_Clock // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(426, 272); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); this.Controls.Add(this.textBox1); this.Name = "SeriesType_Clock"; this.Text = "Clock"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); this.panel2.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.tChart1 = new Steema.TeeChart.TChart(); this.bar1 = new Steema.TeeChart.Styles.Bar(); this.button1 = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.textBox2 = new System.Windows.Forms.TextBox(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(473, 62); this.textBox1.Text = "Series can be populated from virtually any text source. Text can be loaded from F" + "ile or Web URL address."; // // panel1 // this.panel1.Controls.Add(this.textBox2); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.button1); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(473, 42); // // panel2 // this.panel2.Controls.Add(this.tChart1); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(473, 195); // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; this.tChart1.Dock = System.Windows.Forms.DockStyle.Fill; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "TeeChart" }; this.tChart1.Location = new System.Drawing.Point(0, 0); this.tChart1.Name = "tChart1"; this.tChart1.Series.Add(this.bar1); this.tChart1.Size = new System.Drawing.Size(473, 195); this.tChart1.TabIndex = 0; // // tChart1.Walls // // // tChart1.Walls.Back // // // tChart1.Walls.Back.Brush // this.tChart1.Walls.Back.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); // // tChart1.Walls.Back.Gradient // this.tChart1.Walls.Back.Brush.Gradient.Transparency = 50; // // tChart1.Walls.Back.Gradient // this.tChart1.Walls.Back.Gradient.Transparency = 50; this.tChart1.Walls.Back.Transparent = false; // // tChart1.Walls.Bottom // // // tChart1.Walls.Bottom.Pen // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // tChart1.Walls.Left // // // tChart1.Walls.Left.Pen // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; // // bar1 // // // bar1.Brush // this.bar1.Brush.Color = System.Drawing.Color.Red; // // bar1.Marks // // // bar1.Marks.Symbol // // // bar1.Marks.Symbol.Shadow // this.bar1.Marks.Symbol.Shadow.Height = 1; this.bar1.Marks.Symbol.Shadow.Visible = true; this.bar1.Marks.Symbol.Shadow.Width = 1; this.bar1.Title = "bar1"; // // bar1.XValues // this.bar1.XValues.DataMember = "X"; this.bar1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // bar1.YValues // this.bar1.YValues.DataMember = "Bar"; // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(24, 10); this.button1.Name = "button1"; this.button1.TabIndex = 0; this.button1.Text = "&Fill series"; this.button1.Click += new System.EventHandler(this.button1_Click); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(120, 13); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(43, 16); this.label1.TabIndex = 1; this.label1.Text = "&Source:"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // textBox2 // this.textBox2.Location = new System.Drawing.Point(172, 11); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(180, 20); this.textBox2.TabIndex = 2; this.textBox2.Text = "http://www.steema.com/demo.txt"; // // Import_Text // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(473, 299); this.Name = "Import_Text"; this.panel1.ResumeLayout(false); this.panel2.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Template_Chart)); this.textBox1 = new System.Windows.Forms.TextBox(); this.panel1 = new System.Windows.Forms.Panel(); this.button2 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button(); this.panel2 = new System.Windows.Forms.Panel(); this.splitter1 = new System.Windows.Forms.Splitter(); this.tChart2 = new Steema.TeeChart.TChart(); this.tChart1 = new Steema.TeeChart.TChart(); this.pointSeries1 = new Steema.TeeChart.Styles.Points(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.textBox1.Dock = System.Windows.Forms.DockStyle.Top; this.textBox1.Location = new System.Drawing.Point(0, 0); this.textBox1.Multiline = true; this.textBox1.Name = "textBox1"; this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.textBox1.Size = new System.Drawing.Size(439, 62); this.textBox1.TabIndex = 2; this.textBox1.Text = resources.GetString("textBox1.Text"); // // panel1 // this.panel1.Controls.Add(this.button2); this.panel1.Controls.Add(this.button1); this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 62); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(439, 42); this.panel1.TabIndex = 3; // // button2 // this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button2.Location = new System.Drawing.Point(153, 7); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(143, 23); this.button2.TabIndex = 1; this.button2.Text = "&Run Example"; this.button2.Click += new System.EventHandler(this.button2_Click); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(16, 7); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(100, 23); this.button1.TabIndex = 0; this.button1.Text = "&Edit Template..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // panel2 // this.panel2.Controls.Add(this.splitter1); this.panel2.Controls.Add(this.tChart2); this.panel2.Controls.Add(this.tChart1); this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; this.panel2.Location = new System.Drawing.Point(0, 104); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(439, 168); this.panel2.TabIndex = 4; // // splitter1 // this.splitter1.Location = new System.Drawing.Point(142, 0); this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(5, 168); this.splitter1.TabIndex = 2; this.splitter1.TabStop = false; // // tChart2 // // // // this.tChart2.Aspect.ZOffset = 0; this.tChart2.Dock = System.Windows.Forms.DockStyle.Fill; // // // this.tChart2.Header.Lines = new string[] { "tChart2" }; this.tChart2.Location = new System.Drawing.Point(142, 0); this.tChart2.Name = "tChart2"; this.tChart2.Size = new System.Drawing.Size(297, 168); this.tChart2.TabIndex = 1; // // // // // // // // // this.tChart2.Walls.Bottom.Pen.Visible = false; this.tChart2.Walls.Bottom.Size = 5; // // // // // // this.tChart2.Walls.Left.Pen.Visible = false; this.tChart2.Walls.Left.Size = 5; // // tChart1 // // // // this.tChart1.Aspect.ZOffset = 0; // // // // // // this.tChart1.Axes.Bottom.MaximumOffset = 5; this.tChart1.Axes.Bottom.MinimumOffset = 5; // // // this.tChart1.Axes.Left.MaximumOffset = 5; this.tChart1.Axes.Left.MinimumOffset = 5; this.tChart1.Dock = System.Windows.Forms.DockStyle.Left; // // // this.tChart1.Header.Lines = new string[] { "tChart1" }; // // // this.tChart1.Legend.Visible = false; this.tChart1.Location = new System.Drawing.Point(0, 0); this.tChart1.Name = "tChart1"; this.tChart1.Series.Add(this.pointSeries1); this.tChart1.Size = new System.Drawing.Size(142, 168); this.tChart1.TabIndex = 0; // // // // // // // // // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // // // // // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; // // pointSeries1 // this.pointSeries1.Color = System.Drawing.Color.Red; this.pointSeries1.ColorEach = false; // // // // // // this.pointSeries1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.pointSeries1.Marks.Callout.ArrowHeadSize = 8; // // // this.pointSeries1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.pointSeries1.Marks.Callout.Distance = 0; this.pointSeries1.Marks.Callout.Draw3D = false; this.pointSeries1.Marks.Callout.Length = 0; this.pointSeries1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.pointSeries1.Marks.Callout.Visible = false; // // // // // // this.pointSeries1.Pointer.Brush.Color = System.Drawing.Color.Red; this.pointSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.pointSeries1.Title = "pointSeries1"; // // // this.pointSeries1.XValues.DataMember = "X"; this.pointSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.pointSeries1.YValues.DataMember = "Y"; // // Export_Template // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(439, 272); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); this.Controls.Add(this.textBox1); this.Name = "Export_Template"; this.Text = "Template"; this.panel1.ResumeLayout(false); this.panel2.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }