public void AddPoint(PointModel point) { double value; if (!double.TryParse(point.Value, out value)) { return; } if (value > _maximum) { _maximum = value; } if (value < _minimum) { _minimum = value; } _pts.Add(point); }
public override void AddPoint(PointModel point) { double value; if (point is ValuePairPointModel) { ValuePairPointModel data = point as ValuePairPointModel; value = data.Y; _points.Add(data); if (value > _maximum) _maximum = value; if (value < _minimum) _minimum = value; } else { throw new NotSupportedException(); } }
public override void AddPoint(PointModel point) { if (point is FontLabelValuePairModel) { _points.Add(point as FontLabelValuePairModel); double value = ((FontLabelValuePairModel)point).Y; if (value > _maximum) { _maximum = value; } if (value < _minimum) { _minimum = value; } } else { throw new NotSupportedException(); } }
public void AddPoint(PointModel point) { double value; if (!double.TryParse(point.Value, out value)) { return; } this.Points.Add(new OxyPlot.DataPoint(point.Index, value)); if (value > _maximum) { _maximum = value; } if (value < _minimum) { _minimum = value; } _points.Add(point); }
public virtual bool OnMouseHover(System.Windows.Forms.MouseEventArgs e) { _mouse_move_point = null; if (this.XAxis == null || this.YAxis == null) { return(false); } for (int i = 0; i < _points.Count; i++) { double x = this.XAxis.Transform(_points[i].Index); double y = this.YAxis.Transform(double.Parse(_points[i].Value)); if (Math.Abs(x - e.Location.X) < Distance && Math.Abs(y - e.Location.Y) < Distance) { _mouse_move_point = _points[i]; return(true); } } return(false); }
public override void AddPoint(PointModel point) { if (point is ValuePairPointModel) { _points.Add(point as ValuePairPointModel); double value = ((ValuePairPointModel)point).Y; this.Points.Add(new OxyPlot.DataPoint(point.Index, value)); if (value > _maximum) { _maximum = value; } if (value < _minimum) { _minimum = value; } } else { throw new NotSupportedException(); } }
public void AddPoint(PointModel point) { //throw new NotImplementedException(); }