public static void DrawVertexSelected(Graphics g, IVertex v, Font f, PointF p, RectangleF r, int Radius = 5) { String s = v.AttributesToString(); SizeF size = g.MeasureString(s, f); RectangleF rect = new RectangleF(p, size); GraphicsPath roundedRect = GetRoundedRect(rect, Radius); g.FillEllipse(brushHover, r); g.FillPath(brushAttrPanel, roundedRect); g.DrawPath(penAttrBorder, roundedRect); g.DrawString(s, f, brushText, rect); }