- Timestamp:
- 04/20/10 15:49:22 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3/SymbolicExpressionTreeChart.cs
r3294 r3442 258 258 259 259 //draw name of symbol 260 graphics.DrawString(node.Symbol.Name, textFont, textBrush, new RectangleF(visualTreeNode.X, visualTreeNode.Y, visualTreeNode.Width, visualTreeNode.Height), stringFormat); 260 var text = node.ToString(); 261 graphics.DrawString(text, textFont, textBrush, new RectangleF(visualTreeNode.X, visualTreeNode.Y, visualTreeNode.Width, visualTreeNode.Height), stringFormat); 261 262 262 263 //draw connection line to parent node -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3/SymbolicExpressionView.cs
r3244 r3442 48 48 if (node.SubTrees.Count > 0) { 49 49 // symbol on same line as '(' 50 strBuilder.AppendLine(node. Symbol.Name);50 strBuilder.AppendLine(node.ToString()); 51 51 // each subtree expression on a new line 52 52 // and closing ')' also on new line … … 57 57 } else { 58 58 // symbol in the same line with as '(' and ')' 59 strBuilder.Append(node. Symbol.Name);59 strBuilder.Append(node.ToString()); 60 60 strBuilder.Append(")"); 61 61 }
Note: See TracChangeset
for help on using the changeset viewer.