public Route(string Name) { latMin = 100; lonMin = 181; latMax = -100; lonMax = -1; Points = new List<RoutePoint>(); RS = new RouteSettings(); NameOfRoute = Name; }
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); }
private void DrawNodesLine(Graphics g, Point pt1, Point pt2,RouteSettings RS) { g.DrawLine(RS.pen, pt1, pt2); }
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); }