/**Getarrowpoint.*/ public ArrowPoint[] GetArrow(LinePoint[] Linepoint, int method) { ArrowPoint[] point = new ArrowPoint[2]; point[0] = new ArrowPoint(); point[1] = new ArrowPoint(); if (method == (int)PathMethod.Direct) { point[0].xd = Linepoint[0].x[0]; point[0].yd = Linepoint[0].y[0]; point[0].xs = Linepoint[0].x[1]; point[0].ys = Linepoint[0].y[1]; } else if (method == (int)PathMethod.Reflect) { point[0].xd = Linepoint[0].x[0]; point[0].yd = Linepoint[0].y[0]; point[0].xs = Linepoint[0].x[1]; point[0].ys = Linepoint[0].y[1]; } else if (method == (int)PathMethod.Series) { point[0].xd = Linepoint[0].x[0]; point[0].yd = Linepoint[0].y[0]; point[0].xs = Linepoint[0].x[1]; point[0].ys = Linepoint[0].y[1]; point[1].xd = Linepoint[1].x[2]; point[1].yd = Linepoint[1].y[2]; point[1].xs = Linepoint[1].x[1]; point[1].ys = Linepoint[1].y[1]; } return(point); }
public static void DrawArrow(ArrowPoint point, Color color, TChart chart) { Steema.TeeChart.Styles.Arrow Tmparrow = new Steema.TeeChart.Styles.Arrow(chart.Chart); Tmparrow.Add(point.xs, point.ys); Tmparrow.EndXValues[0] = point.xd; Tmparrow.EndYValues[0] = point.yd; Tmparrow.Color = color; }