String GetEdgeRealizer(GrColor edgeColor, GrColor textColor, int lineWidth, GrLineStyle lineStyle) { EdgeRealizer newEr = new EdgeRealizer("er" + nextEdgeRealizerID, edgeColor, textColor, lineWidth, lineStyle); EdgeRealizer er; if (!edgeRealizers.TryGetValue(newEr, out er)) { ycompStream.Write("addEdgeRealizer \"" + newEr.Name + "\" \"" + VCGDumper.GetColor(newEr.Color) + "\" \"" + VCGDumper.GetColor(newEr.TextColor) + "\" \"" + lineWidth + "\" \"continuous\"\n"); edgeRealizers.Add(newEr, newEr); nextEdgeRealizerID++; er = newEr; } return(er.Name); }
private EdgeRealizer GetEdgeRealizer(GrColor edgeColor, GrColor textColor, int lineWidth, GrLineStyle lineStyle) { EdgeRealizer newEr = new EdgeRealizer("er" + nextEdgeRealizerID, edgeColor, textColor, lineWidth, lineStyle); EdgeRealizer er; if (!registeredEdgeRealizers.TryGetValue(newEr, out er)) { if (ycompStream != null) { ycompStream.Write("addEdgeRealizer \"" + newEr.Name + "\" \"" + VCGDumper.GetColor(newEr.Color) + "\" \"" + VCGDumper.GetColor(newEr.TextColor) + "\" \"" + lineWidth + "\" \"" + VCGDumper.GetLineStyle(newEr.LineStyle) + "\"\n"); } registeredEdgeRealizers.Add(newEr, newEr); ++nextEdgeRealizerID; er = newEr; } return(er); }