public virtual void RenderPage(XGraphics gfx) { //Debug.WriteLine("RenderPage"); gfx.Clear(this.properties.General.BackColor.Color); //DrawGridlines(gfx); gfx.SmoothingMode = XSmoothingMode.AntiAlias; }
private static void Draw(XGraphics g, Network n, LayoutProvider layout, NetworkColorizer colorizer) { lock (n) { if (g == null) { return; } g.SmoothingMode = PdfSharp.Drawing.XSmoothingMode.HighQuality; g.Clear(Color.White); foreach (Edge e in n.Edges) { DrawEdge(g, e, layout, colorizer); } foreach (Vertex v in n.Vertices) { DrawVertex(g, v, layout, colorizer); } } }
private static void Draw(XGraphics g, IRenderableNet n, LayoutProvider layout, NetworkColorizer colorizer) { lock (n) { if (g == null) { return; } g.SmoothingMode = PdfSharp.Drawing.XSmoothingMode.HighQuality; g.Clear(Color.White); foreach (var e in n.GetEdgeArray()) { if (string.Compare(e.Item1, e.Item2) >= 0) { DrawEdge(g, e, layout, colorizer); } } foreach (string v in n.GetVertexArray()) { DrawVertex(g, v, layout, colorizer); } } }