Exemplo n.º 1
0
        public override void Draw(Graphics _Graphics, XView _View)
        {
            Point screenPoint = _View.ToScreenPoint(Centroid);

            _Graphics.FillEllipse(new SolidBrush(Color.Red),
                                  new Rectangle(screenPoint.X - 3, screenPoint.Y - 3, 6, 6));
        }
Exemplo n.º 2
0
        public void Draw(Graphics _Graphics, XView _View, XVertex _Location, int _Index)
        {
            Point screenPoint = _View.ToScreenPoint(_Location);

            _Graphics.DrawString(GetValue(_Index).ToString(),
                                 new Font("宋体", 20),
                                 new SolidBrush(Color.Green), screenPoint);
        }