void NodeStyler(object sender, GleeVertexEventArgs <Vertex> args) { args.Node.Attr.Shape = Shape.Box; args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.Black; args.Node.Attr.Fontcolor = Microsoft.Glee.Drawing.Color.White; args.Node.Attr.Fontsize = 8; args.Node.Attr.FontName = "Tahoma"; args.Node.Attr.Label = args.Vertex.Title; args.Node.Attr.Padding = 1.2; ApplyVertexStyle(args.Node.Attr, args.Vertex.VertexType); }
void NodeStyler(object sender, GleeVertexEventArgs <Vertex> args) { Color color = _bg[args.Vertex.VertexType]; args.Node.Attr.Fillcolor = color; args.Node.Attr.Shape = _shape[args.Vertex.VertexType]; args.Node.Attr.Fontcolor = _fg[args.Vertex.VertexType]; args.Node.Attr.Fontsize = 8; args.Node.Attr.FontName = "Arial"; args.Node.Attr.Label = args.Vertex.Title; args.Node.Attr.Padding = 1.1; }
void NodeStyler(object sender, GleeVertexEventArgs <Vertex> args) { Microsoft.Glee.Drawing.Color color = GetVertexColor(args.Vertex.VertexType); args.Node.Attr.Fillcolor = color; args.Node.Attr.Shape = Shape.Box; args.Node.Attr.Fontcolor = Microsoft.Glee.Drawing.Color.White; args.Node.Attr.Fontsize = 8; args.Node.Attr.FontName = "Arial"; args.Node.Attr.Label = args.Vertex.Title; args.Node.Attr.Padding = 1.2; }
void NodeStyler(object sender, GleeVertexEventArgs<Vertex> args) { Microsoft.Glee.Drawing.Color color = GetVertexColor(args.Vertex.VertexType); args.Node.Attr.Fillcolor = color; args.Node.Attr.Shape = Shape.Box; args.Node.Attr.Fontcolor = Microsoft.Glee.Drawing.Color.White; args.Node.Attr.Fontsize = 6; args.Node.Attr.FontName = "Arial"; args.Node.Attr.Label = args.Vertex.Title; args.Node.Attr.Padding = 1.2; }
void populator_NodeAdded(object sender, GleeVertexEventArgs <GcType> args) { args.Node.Attr.Shape = Microsoft.Glee.Drawing.Shape.Box; double gen = args.Vertex.Gen; if (gen > 2) { args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.LightBlue; } else if (gen > 1) { args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.LightGoldenrodYellow; } else if (gen >= 0) { args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.LightPink; } else { args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.LightSalmon; } // root -> other color if (args.Vertex.Root) { args.Node.Attr.LineWidth = 4; args.Node.Attr.Color = Microsoft.Glee.Drawing.Color.Green; args.Node.Attr.AddStyle(Microsoft.Glee.Drawing.Style.Bold); } // label args.Node.Attr.Label = String.Format("{0}\nc:{1} s:{2}", args.Vertex.Name, args.Vertex.Count, FormatHelper.ToSize(args.Vertex.Size) ); var vgen = args.Vertex.Gen; if (vgen > -1) { args.Node.Attr.Label += String.Format(" g:{0}", vgen); } }
void NodeStyler(object sender, GleeVertexEventArgs<Vertex> args) { if (args.Vertex.VertexType == typeof(Event)) { args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.Red; args.Node.Attr.Label = args.Vertex.Title; args.Node.Attr.Shape = Shape.Ellipse; } else { args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.Blue; args.Node.Attr.Label = args.Vertex.Title; args.Node.Attr.Shape = Shape.Box; } args.Node.Attr.Fontcolor = Microsoft.Glee.Drawing.Color.White; args.Node.Attr.Fontsize = 8; args.Node.Attr.FontName = "Arial"; args.Node.Attr.Padding = 1.2; }
void NodeStyler(object sender, GleeVertexEventArgs <Vertex> args) { if (args.Vertex.VertexType == typeof(Event)) { args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.Red; args.Node.Attr.Label = args.Vertex.Title; args.Node.Attr.Shape = Shape.Ellipse; } else { args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.Blue; args.Node.Attr.Label = args.Vertex.Title; args.Node.Attr.Shape = Shape.Box; } args.Node.Attr.Fontcolor = Microsoft.Glee.Drawing.Color.White; args.Node.Attr.Fontsize = 8; args.Node.Attr.FontName = "Arial"; args.Node.Attr.Padding = 1.2; }
void NodeStyler(object sender, GleeVertexEventArgs<Vertex> args) { args.Node.Attr.Fontcolor = Microsoft.Glee.Drawing.Color.White; args.Node.Attr.Fontsize = 8; args.Node.Attr.FontName = "Arial"; args.Node.Attr.Padding = 1.2; if (args.Vertex.VertexType.GetGenericTypeDefinition() == typeof(SuccessVane<>)) { args.Node.Attr.Fontcolor = Microsoft.Glee.Drawing.Color.White; args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.Green; args.Node.Attr.Shape = Shape.Box; args.Node.Attr.Label = "Success"; } else if (args.Vertex.VertexType.GetGenericTypeDefinition() == typeof(UnhandledVane<>)) { args.Node.Attr.Fontcolor = Microsoft.Glee.Drawing.Color.White; args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.DarkRed; args.Node.Attr.Shape = Shape.Box; args.Node.Attr.Label = "Unhandled"; } else if (args.Vertex.VertexType.GetGenericTypeDefinition() == typeof(FactorySourceVane<>) || args.Vertex.VertexType.GetGenericTypeDefinition() == typeof(InstanceSourceVane<>)) { args.Node.Attr.Fontcolor = Microsoft.Glee.Drawing.Color.White; args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.Navy; args.Node.Attr.Shape = Shape.House; args.Node.Attr.Label = args.Vertex.Title; args.Node.Attr.AddStyle(Style.Bold); } else { args.Node.Attr.Fontcolor = Microsoft.Glee.Drawing.Color.Black; args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.Cyan; args.Node.Attr.Shape = Shape.Box; args.Node.Attr.Label = args.Vertex.Title; } }
void NodeStyler(object sender, GleeVertexEventArgs <Vertex> args) { args.Node.Attr.Fontcolor = Microsoft.Glee.Drawing.Color.White; args.Node.Attr.Fontsize = 8; args.Node.Attr.FontName = "Arial"; args.Node.Attr.Padding = 1.1; if (args.Vertex.VertexType == typeof(Event)) { args.Node.Attr.Fontcolor = Microsoft.Glee.Drawing.Color.Black; args.Node.Attr.Shape = Shape.Plaintext; args.Node.Attr.Label = args.Vertex.Title; if (args.Vertex.TargetType != typeof(Event) && args.Vertex.TargetType != typeof(Exception)) { args.Node.Attr.Label += "<" + args.Vertex.TargetType.Name + ">"; } } else { switch (args.Vertex.Title) { case "Initial": args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.Green; break; case "Final": args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.Crimson; break; default: args.Node.Attr.Fontcolor = Microsoft.Glee.Drawing.Color.Black; args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.Cyan; break; } args.Node.Attr.Label = args.Vertex.Title; args.Node.Attr.Shape = Shape.Ellipse; } }
void NodeStyler(object sender, GleeVertexEventArgs<Vertex> args) { args.Node.Attr.Fontcolor = Microsoft.Glee.Drawing.Color.White; args.Node.Attr.Fontsize = 8; args.Node.Attr.FontName = "Arial"; args.Node.Attr.Padding = 1.2; if (args.Vertex.VertexType == typeof(Event)) { if (args.Vertex.Title.EndsWith("Exception")) { args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.Red; args.Node.Attr.Shape = Shape.Box; } else { args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.Yellow; args.Node.Attr.Shape = Shape.Ellipse; } args.Node.Attr.Label = args.Vertex.Title; args.Node.Attr.Fontcolor = Microsoft.Glee.Drawing.Color.Black; } else { switch (args.Vertex.Title) { case "Initial": args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.Black; break; case "Completed": args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.Black; break; default: args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.Blue; break; } args.Node.Attr.Label = args.Vertex.Title; args.Node.Attr.Shape = Shape.Circle; } }
void NodeStyler(object sender, GleeVertexEventArgs<Vertex> args) { Color color = _bg[args.Vertex.VertexType]; args.Node.Attr.Fillcolor = color; args.Node.Attr.Shape = _shape[args.Vertex.VertexType]; args.Node.Attr.Fontcolor = _fg[args.Vertex.VertexType]; args.Node.Attr.Fontsize = 8; args.Node.Attr.FontName = "Arial"; args.Node.Attr.Label = args.Vertex.Title; args.Node.Attr.Padding = 1.1; }
void populator_NodeAdded(object sender, GleeVertexEventArgs<GcType> args) { args.Node.Attr.Shape = Microsoft.Glee.Drawing.Shape.Box; double gen = args.Vertex.Gen; if (gen > 2) args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.LightBlue; else if (gen > 1) args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.LightGoldenrodYellow; else if (gen >= 0) args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.LightPink; else args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.LightSalmon; // root -> other color if (args.Vertex.Root) args.Node.Attr.AddStyle(Microsoft.Glee.Drawing.Style.Dashed); // label args.Node.Attr.Label = String.Format("{0}\nc:{1} g:{2:0.0} s:{3}", args.Vertex.Name, args.Vertex.Count, args.Vertex.Gen, FormatHelper.ToSize(args.Vertex.Size) ); }