public override void Draw(Graphics g, IEnumerable <GraphPoint> points, SerialStyle style)
 {
     foreach (GraphPoint point in points)
     {
         PointRenderer.DrawPoint(g, (int)point.X, (int)point.Y[0], style.PointRadius, style.PointRotateAngle, DataSource.Pen, DataSource.Brush, style.PointStyle);
     }
 }
Exemple #2
0
        public override void Draw(Graphics g, IEnumerable <GraphPoint> points, SerialStyle style)
        {
            GraphicsPath path = new GraphicsPath();

            GraphPoint prevPoint = null;

            foreach (GraphPoint point in points)
            {
                if (prevPoint == null)
                {
                    prevPoint = point;
                }
                else
                {
                    path.AddLine(new Point((int)prevPoint.X, (int)prevPoint.Y[0]), new Point((int)point.X, (int)point.Y[0]));
                    prevPoint = point;
                }
            }


            g.DrawPath(DataSource.Pen, path);


            path.Dispose();
        }
        public override void Draw(Graphics g, IEnumerable <GraphPoint> points, SerialStyle style)
        {
            foreach (GraphPoint point in points)
            {
                g.DrawLine(DataSource.Pen, new Point((int)point.X, (int)point.Y[1]), new Point((int)point.X, (int)point.Y[2]));
                g.FillEllipse(DataSource.Brush, new Rectangle((int)(point.X - 3), (int)(point.Y[0] - 3), 6, 6));

                g.DrawLine(DataSource.Pen, new Point((int)point.X - 3, (int)point.Y[1]), new Point((int)point.X + 3, (int)point.Y[1]));
                g.DrawLine(DataSource.Pen, new Point((int)point.X - 3, (int)point.Y[2]), new Point((int)point.X + 3, (int)point.Y[2]));
            }
        }
Exemple #4
0
 public abstract void Draw(Graphics g, IEnumerable <GraphPoint> points, SerialStyle style);