예제 #1
0
 public Route(string Name)
 {
     latMin = 100;
     lonMin = 181;
     latMax = -100;
     lonMax = -1;
     Points = new List<RoutePoint>();
     RS = new RouteSettings();
     NameOfRoute = Name;
 }
예제 #2
0
 public void WriteNodeString(Graphics g, Point pt, string str, Font font, RouteSettings RS)
 {
     SizeF SizeStr = g.MeasureString(str, font);
     int X = pt.X - (int)(SizeStr.Width / 2);
     int Y = pt.Y - (int)(SizeStr.Height / 2);
     g.DrawString(str, font, RS.brushText, X, Y);
 }
예제 #3
0
 private void DrawNodesLine(Graphics g, Point pt1, Point pt2,RouteSettings RS)
 {
     g.DrawLine(RS.pen, pt1, pt2);
 }
예제 #4
0
        private void DrawNode(Graphics g, Point pt,RouteSettings RS)
        {
            //g.SmoothingMode = SmoothingMode.HighQuality;                            // set the smoothing mode
            int delta = (int)(RS.EllipseSize / 2);

            g.FillEllipse(RS.brush, pt.X - delta, pt.Y - delta, RS.EllipseSize, RS.EllipseSize);
        }