private void chart_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { /* _controller.chart.Canvas.TextOut(100,100,"hello"); * _controller.chart.Graphics3D.Pen.Color = UIColor.Yellow.CGColor; * _controller.chart.Graphics3D.Pen.Width=3; * _controller.chart.Canvas.Line(0,0,100,100); */ }
private void tChart1_BeforeDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { if (BeforeChart) { DrawShape(); } }
private void tChart4_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { if (posRepainted == 0) { posRepainted = 1; tChart4.Refresh(); } //setup centre positions of titles on chart //relative to their text lengths tChart1.Refresh(); tChart2.Refresh(); tChart3.Refresh(); posRepainted = 2; { int xs = tChart4.Axes.Bottom.CalcXPosValue(xVal); int ys; g.Brush.Visible = true; g.Brush.Solid = true; for (int i = 0; i < tChart4.Series.Count; i++) { if (tChart4.Series[i] is Steema.TeeChart.Styles.Custom) { ys = tChart4.Series[i].GetVertAxis.CalcYPosValue(InterpolateLineSeries(tChart4.Series[i] as Steema.TeeChart.Styles.Custom, xVal)); g.Brush.Color = tChart4.Series[i].Color; g.Ellipse(new Rectangle(xs - 4, ys - 4, 8, 8)); } } } }
private void lineSeries1_AfterDrawValues(object sender, Steema.TeeChart.Drawing.Graphics3D g) { if (checkBox1.Checked) { tChart1.Graphics3D.ClearClipRegions(); } }
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { g.Pen.Style = System.Drawing.Drawing2D.DashStyle.Solid; g.Pen.Color = Color.Blue; g.Brush.Visible = true; g.Brush.Color = Color.Azure; g.Ellipse(50, 90, 250, 160, 0, hScrollBar2.Value); }
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { tChart1.Graphics3D.TextOut(tChart1.Axes.Bottom.CalcPosValue(0), horizBar1.CalcYPos(5) - 16, "Memory Usage"); tChart1.Graphics3D.TextOut(tChart1.Axes.Bottom.CalcPosValue(0), horizBar1.CalcYPos(4) - 16, "CPU usage"); tChart1.Graphics3D.TextOut(tChart1.Axes.Bottom.CalcPosValue(0), horizBar1.CalcYPos(3) - 16, "Storage space"); tChart1.Graphics3D.TextOut(tChart1.Axes.Bottom.CalcPosValue(0), horizBar1.CalcYPos(2) - 16, "Apps installed"); tChart1.Graphics3D.TextOut(tChart1.Axes.Bottom.CalcPosValue(0), horizBar1.CalcYPos(1) - 16, "Bandwidth"); }
void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { if (tempTitle != null) { tempTitle.CustomPosition = true; Rectangle rect = tChart1.Chart.ChartRect; tempTitle.DoDraw(g, ref rect, true, "Title"); } }
private void DrawBevelsAroundAxis(Steema.TeeChart.Drawing.Graphics3D e, Steema.TeeChart.Drawing.BevelStyles style, int size) { Steema.TeeChart.Drawing.Bevel bevel = new Steema.TeeChart.Drawing.Bevel(tChart1.Chart); bevel.Inner = Steema.TeeChart.Drawing.BevelStyles.None; bevel.Outer = style; bevel.Width = size; bevel.Draw(e, e.Chart.ChartRect); }
void ChartBeforeDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { //debug /* * g.Font.Size = 8; * g.TextOut(10, 10, "repaint count: " + bCounter++.ToString()); */ }
void tChart1_BeforeDrawSeries(object sender, Steema.TeeChart.Drawing.Graphics3D g) { if (flag) { // place upper series cursor in the middle this.cursorTool1.XValue = 0.5 * (this.lineSeries1.XValues.Maximum + this.lineSeries1.XValues.Minimum); flag = false; } }
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { this.tChart1.Graphics3D.Brush.Color = Color.Violet; this.tChart1.Graphics3D.Brush.Solid = true; this.tChart1.Graphics3D.Brush.Visible = true; System.Drawing.Rectangle r = new System.Drawing.Rectangle(30, 30, 80, 30); this.tChart1.Graphics3D.Cone(true, r, 0, 20, true, (int)this.trackBar1.Value); }
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { g.Brush.Visible = true; g.Brush.Gradient.Visible = true; g.Brush.Gradient.EndColor = Color.Orange; g.Pen.Color = Color.DarkRed; g.PyramidTrunc(new System.Drawing.Rectangle(g.ChartXCenter, g.ChartYCenter, 60, 70), 0, 50, (int)hScrollBar1.Value, (int)hScrollBar2.Value); }
private void revChart_BeforeDrawSeries(object sender, Steema.TeeChart.Drawing.Graphics3D g) { if (warningOn) //display rev warning light { g.Brush.Image = SubaruBRZSimul.Properties.Resources.redline_warning; g.Pen.Transparency = 100; g.Rectangle(309, 207, 349, 247); } }
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { if (cursorTool1.XValue > tChart1.Axes.Bottom.Minimum && cursorTool1.XValue < tChart1.Axes.Bottom.Maximum) { g.Brush.Color = Color.Red; g.Brush.Visible = true; int xpos = cursorTool1.GetHorizAxis.CalcPosValue(cursorTool1.XValue); int ypos = cursorTool1.GetVertAxis.CalcPosValue(cursorTool1.YValue); g.Rectangle(xpos - 5, ypos + 5, xpos + 5, ypos - 5); } }
private void line1_BeforeDrawValues(object sender, Steema.TeeChart.Drawing.Graphics3D g) { int posAxis = 0; if (_controller.chart.Axes.Left.Maximum > 0) { _controller.chart.Axes.Left.Draw(g.ChartXCenter - 10, g.ChartXCenter - 20, g.ChartXCenter, true); } posAxis = _controller.chart.Axes.Left.CalcYPosValue(10); _controller.chart.Axes.Bottom.Draw(posAxis + 10, posAxis + 40, posAxis, true); }
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { if (AfterDraw) { DrawShape(); } BeforeChart = false; BeforeAxes = false; BeforeSeries = false; AfterDraw = false; }
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { if (g.SmoothingMode == System.Drawing.Drawing2D.SmoothingMode.Default) { g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; } else { g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.Default; } }
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { if (!tChart1Loaded) { if (scrollPager1 != null) { scrollPager1.ColorBandTool.Start = 2005; scrollPager1.ColorBandTool.End = 2010; } tChart1Loaded = true; } }
private void Chart_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { if (!isRepainted) { var chart = sender as Chart; double maxValue = chart.Axes.Left.MaxYValue + 100; chart.Chart.Axes.Left.Automatic = false; chart.Axes.Left.SetMinMax(0, maxValue); isRepainted = true; chart.Draw(); } }
public virtual void OnAfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { if (!_isRepainted) { var chart = sender as Steema.TeeChart.Chart; double maxValue = chart.Axes.Left.MaxYValue + MaxValueAxisLeft; chart.Chart.Axes.Left.Automatic = false; chart.Axes.Left.SetMinMax(0, maxValue); _isRepainted = true; chart.Draw(); } }
void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { if (paintFirst > 1) { axStartValue = tChart1.Axes.Bottom.Minimum; axEndValue = tChart1.Axes.Bottom.Maximum; } paintFirst++; //scroller.SubChartTChart.Footer.Font.Color = Color.FromRgb(0, 51, 102); //scroller.SubChartTChart.Footer.Text = " Showing data from " + DateTime.FromOADate(axStartValue).ToLongDateString() + " to " + DateTime.FromOADate(axEndValue).ToLongDateString(); }
private void tChart1_BeforeDrawAxes(object sender, Steema.TeeChart.Drawing.Graphics3D g) { if (checkBox1.Checked && checkBox2.Checked) { GenerateLogLabels(g, line1.GetVertAxis, majors, minors, line1.GetHorizAxis.IStartPos, line1.GetHorizAxis.IEndPos); tChart1.Invalidate(); } else { line1.GetVertAxis.Labels.Items.Clear(); } }
private void lineSeries1_BeforeDrawValues(object sender, Steema.TeeChart.Drawing.Graphics3D g) { // make opaque if (checkBox1.Checked) { Steema.TeeChart.Styles.Series s = sender as Steema.TeeChart.Styles.Series; int left = s.GetHorizAxis.IStartPos; int right = s.GetHorizAxis.IEndPos; int top = s.GetVertAxis.IStartPos; int bottom = s.GetVertAxis.IEndPos; tChart1.Graphics3D.ClipRectangle(left, top, right, bottom); } }
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { if (idx != -1) { string tmpStr = tagCloud1.Labels[idx].ToString(); int fontSize = (int)(tagCloud1.GetTagFontSize(idx) * 1.5); g.Pen.Width = 2; g.Pen.Color = tagCloud1.ValueColor(idx); g.Line(new Point(tagCloud1.Positions[idx].Left, tagCloud1.Positions[idx].Top + fontSize), new Point(tagCloud1.Positions[idx].Right, tagCloud1.Positions[idx].Top + fontSize)); } }
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { Steema.TeeChart.Drawing.Graphics3D canvas = tChart1.Graphics3D; canvas.Brush.Solid = true; // <-- IMPORTANT (Try without) !!! canvas.Pen.Width = 2; // Draw a blue ring passing over the 3rd PolarSeries1 Point canvas.Pen.Color = Color.Blue; // polarSeries1.DrawRing( polarSeries1.YValues[2], polarSeries1.EndZ ); // Draw a green ring passing over the 6th Polar #2 Point canvas.Pen.Color = Color.Green; // polarSeries2.DrawRing( polarSeries2.YValues[5], polarSeries2.EndZ ); }
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { // cosmetic line from normal legend to "other" legend if (pie1.OtherSlice.Legend.Visible) { g.Pen.Style = System.Drawing.Drawing2D.DashStyle.Dot; g.Pen.Width = 2; g.Pen.Color = Color.Navy; int tmpX = tChart1.Legend.Left; g.MoveTo(tmpX, tChart1.Legend.ShapeBounds.Bottom - 4); g.LineTo(tmpX - 10, tChart1.Legend.ShapeBounds.Bottom - 4); g.LineTo(tmpX - 10, pie1.OtherSlice.Legend.Top + 4); g.LineTo(pie1.OtherSlice.Legend.Left, pie1.OtherSlice.Legend.Top + 4); } }
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { if (checkBox1.Checked) { switch (comboBox1.SelectedIndex) { case 0: DrawBevelsAroundAxis(g, Steema.TeeChart.Drawing.BevelStyles.Lowered, Convert.ToInt32(numericUpDown1.Value)); break; case 1: DrawBevelsAroundAxis(g, Steema.TeeChart.Drawing.BevelStyles.Raised, Convert.ToInt32(numericUpDown1.Value)); break; } } }
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { g.Font.Color = Color.Blue; g.Font.Bold = true; g.Font.Size = 11; g.TextAlign = StringAlignment.Near; if (checkBox1.Checked) { g.TextOut(10, 10, "DateTime values"); } else { g.TextOut(10, 10, "DateTime as double"); } }
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { if (this.checkBox1.Checked) { if (this.checkBox1.Checked) { System.Drawing.Rectangle legRect = this.tChart1.Legend.ShapeBounds; Steema.TeeChart.Drawing.Graphics3D gr = tChart1.Graphics3D; gr.HorizontalLine(legRect.Left, legRect.Right, legRect.Bottom - 30); gr.TextAlign = System.Drawing.StringAlignment.Near; gr.Font.Size = 8; gr.Font.Color = Color.Navy; gr.TextOut(legRect.Left + 8, legRect.Bottom - 28, "Additional text"); gr.TextOut(legRect.Left + 8, legRect.Bottom - 16, "displayed here."); } } }
void ChartAfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { if (currentIndex != -1) { double xCenter = LineChart.Chart.Series[0].CalcXPos(currentIndex); double yCenter = LineChart.Chart.Series[0].CalcYPos(currentIndex); g.Font.Size = g.Font.Size * 1.5; double offSet = 0; g.TextOut(xCenter - offSet, yCenter - (g.Font.Size * 4), " Value: " + LineChart.Chart.Series[0].YValues[currentIndex].ToString()); Rectangle r = new Rectangle(xCenter - 25, yCenter - 25, 50, 50); g.Brush = pBrush; g.Pen.Width = 4; g.Ellipse(r); } }