- Timestamp:
- 05/22/14 10:43:56 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionTreeChart.cs
r10862 r10885 304 304 //draw nodes and connections 305 305 foreach (var visualNode in visualNodes) { 306 DrawTreeNode( visualNode);306 DrawTreeNode(graphics, visualNode); 307 307 var node = visualNode.Content; 308 308 foreach (var subtree in node.Subtrees) { … … 317 317 } 318 318 } 319 }320 }321 322 protected void DrawTreeNode(VisualTreeNode<ISymbolicExpressionTreeNode> visualTreeNode) {323 using (var graphics = Graphics.FromImage(image)) {324 graphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.High;325 graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;326 DrawTreeNode(graphics, visualTreeNode);327 319 } 328 320 } … … 404 396 private void reingoldTilfordToolStripMenuItem_Click(object sender, EventArgs e) { 405 397 minHorizontalDistance = 30; 398 minVerticalDistance = 30; 406 399 layoutEngine = new ReingoldTilfordLayoutEngine<ISymbolicExpressionTreeNode>(n => n.Subtrees) { 407 400 NodeWidth = preferredNodeWidth, … … 416 409 417 410 private void boxesToolStripMenuItem_Click(object sender, EventArgs e) { 418 minHorizontalDistance = 5; 411 minHorizontalDistance = 5; 419 412 minVerticalDistance = 5; 420 413 layoutEngine = new BoxesLayoutEngine<ISymbolicExpressionTreeNode>(n => n.Subtrees, n => n.GetLength(), n => n.GetDepth()) {
Note: See TracChangeset
for help on using the changeset viewer.