public virtual void PrintAssociation(string type1, string label1, EndType endType1, string type2, string label2, EndType endType2, string name, int size = 2, LinePattern pattern = LinePattern.Solid) { this.printer.Print(type1); if (!string.IsNullOrEmpty(label1)) { this.printer.PrintFormat(" \"{0}\"", label1); } this.printer.PrintFormat(" {0}{1}{2}", endType1.GetLeftSymbol(), pattern.GetSymbol().Repit(size), endType2.GetRightSymbol()); if (!string.IsNullOrEmpty(label2)) { this.printer.PrintFormat(" \"{0}\"", label2); } this.printer.PrintFormat(" {0}", type2); if (!string.IsNullOrEmpty(name)) { this.printer.PrintFormat(" : {0}", name); } this.printer.PrintLn(); }
public virtual void PrintGeneralization(string general, string specific, string name, int size = 2, LinePattern pattern = LinePattern.Solid) { this.printer.Print(general); this.printer.PrintFormat(" {0}{1}", "<|", pattern.GetSymbol().Repit(size)); this.printer.PrintFormat(" {0}", specific); if (!string.IsNullOrEmpty(name)) { this.printer.PrintFormat(" : {0}", name); } this.printer.PrintLn(); }