public override void draw(Graphics graphics, GISView view, bool Selected) { Point screenpoint = view.ToScreenPoint(Location); graphics.FillEllipse(new SolidBrush(Selected ? Color.Red : Color.Black), new Rectangle(screenpoint.X - 3, screenpoint.Y - 3, 6, 6)); }
public Point[] GetScreenPoints(List <GISVertex> _vertexes, GISView view) { Point[] points = new Point[_vertexes.Count]; for (int i = 0; i < points.Length; i++) { points[i] = view.ToScreenPoint(_vertexes[i]); } return(points); }
public void draw(Graphics graphics, GISView view, GISVertex location, int index) { Point screenpoint = view.ToScreenPoint(location); graphics.DrawString(values[index].ToString(), new Font("宋体", 20), new SolidBrush(Color.Green), new PointF(screenpoint.X, screenpoint.Y)); }