Esempio n. 1
0
 public static void PerformLayout(Graphics graphics, IEnumerable <Node> nodes)
 {
     foreach (var node in nodes.Reverse <Node>())
     {
         GraphRenderer.PerformLayout(graphics, node);
     }
 }
Esempio n. 2
0
        public static void Render(Graphics graphics, IEnumerable <Node> nodes, bool showLabels, object context)
        {
            var skipConnections = new HashSet <NodeConnection>();

            foreach (var node in nodes.Reverse <Node>())
            {
                GraphRenderer.RenderConnections(graphics, node, skipConnections, showLabels);
            }
            foreach (var node in nodes.Reverse <Node>())
            {
                GraphRenderer.Render(graphics, node, context);
            }
        }