public ColoredPoint Clone() { ColoredPoint point = new ColoredPoint(); point.name = this.name; point.pointColor = this.pointColor; point.pointData = new Point(this.pointData.X, this.pointData.Y); return point; }
private List<ColoredPoint> GetMouseDataPoints(Point mousePos) { List<ColoredPoint> points = new List<ColoredPoint>(); Point pos = mousePos; pos.Y = ChartInteractiveCanvas.ActualHeight - pos.Y; GeneralTransform inverse = shapeTransform.Inverse; if (inverse == null) return points; pos = inverse.Transform(pos); foreach (TimeSeriesData series in dataSeries) { DateTime xVal = series.FromPointSeconds(pos.X); double yVal = series.GetClosedInterpolatedValue(xVal); ColoredPoint cpt = new ColoredPoint(); cpt.pointColor = series.StrokeColor; cpt.pointData = new Point(pos.X, yVal); cpt.name = series.Name; points.Add(cpt); } return points; }
public void AddLockPoint(ColoredPoint pt) { lockPoints.Add(pt); }