Changeset 10471 for branches/HeuristicLab.ReingoldTilfordTreeLayout/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views
- Timestamp:
- 02/19/14 22:18:49 (10 years ago)
- Location:
- branches/HeuristicLab.ReingoldTilfordTreeLayout/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.ReingoldTilfordTreeLayout/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/GraphicalSymbolicExpressionTreeView.Designer.cs
r9456 r10471 19 19 */ 20 20 #endregion 21 22 using System.Drawing; 21 23 22 24 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views { … … 59 61 this.symbolicExpressionTreeChart.Spacing = 5; 60 62 this.symbolicExpressionTreeChart.TabIndex = 0; 61 this.symbolicExpressionTreeChart.TextFont = new System.Drawing.Font( "Times New Roman", 6F);63 this.symbolicExpressionTreeChart.TextFont = new System.Drawing.Font(FontFamily.GenericSerif, 8F); 62 64 // 63 65 // FunctionTreeView -
branches/HeuristicLab.ReingoldTilfordTreeLayout/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionTreeChart.Designer.cs
r9970 r10471 50 50 this.saveImageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 51 51 this.saveFileDialog = new System.Windows.Forms.SaveFileDialog(); 52 this.exportPgfLaTeXToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 52 53 this.contextMenuStrip.SuspendLayout(); 53 54 this.SuspendLayout(); … … 56 57 // 57 58 this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 58 this.saveImageToolStripMenuItem}); 59 this.saveImageToolStripMenuItem, 60 this.exportPgfLaTeXToolStripMenuItem}); 59 61 this.contextMenuStrip.Name = "contextMenuStrip"; 60 this.contextMenuStrip.Size = new System.Drawing.Size(1 35, 26);62 this.contextMenuStrip.Size = new System.Drawing.Size(166, 70); 61 63 // 62 64 // saveImageToolStripMenuItem 63 65 // 64 66 this.saveImageToolStripMenuItem.Name = "saveImageToolStripMenuItem"; 65 this.saveImageToolStripMenuItem.Size = new System.Drawing.Size(1 34, 22);67 this.saveImageToolStripMenuItem.Size = new System.Drawing.Size(152, 22); 66 68 this.saveImageToolStripMenuItem.Text = "Save Image"; 67 69 this.saveImageToolStripMenuItem.Click += new System.EventHandler(this.saveImageToolStripMenuItem_Click); … … 70 72 // 71 73 this.saveFileDialog.Filter = "Bitmap (*.bmp)|*.bmp|EMF (*.emf)|*.emf"; 74 // 75 // exportPgfLaTeXToolStripMenuItem 76 // 77 this.exportPgfLaTeXToolStripMenuItem.Name = "exportPgfLaTeXToolStripMenuItem"; 78 this.exportPgfLaTeXToolStripMenuItem.Size = new System.Drawing.Size(165, 22); 79 this.exportPgfLaTeXToolStripMenuItem.Text = "Export Pgf/LaTeX"; 80 this.exportPgfLaTeXToolStripMenuItem.Click += new System.EventHandler(this.exportLatexToolStripMenuItem_Click); 72 81 // 73 82 // SymbolicExpressionTreeChart … … 93 102 protected System.Windows.Forms.ToolStripMenuItem saveImageToolStripMenuItem; 94 103 protected System.Windows.Forms.SaveFileDialog saveFileDialog; 104 private System.Windows.Forms.ToolStripMenuItem exportPgfLaTeXToolStripMenuItem; 95 105 } 96 106 } -
branches/HeuristicLab.ReingoldTilfordTreeLayout/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionTreeChart.cs
r10434 r10471 271 271 layoutEngine.Reset(); 272 272 layoutEngine.Root = layoutNodes[0]; 273 foreach (var ln in layoutNodes) 274 layoutEngine.AddNode(ln.Content, ln); 273 layoutEngine.AddNodes(layoutNodes); 275 274 layoutEngine.MinHorizontalSpacing = (preferredNodeWidth + minHDistance); 276 275 layoutEngine.MinVerticalSpacing = (preferredNodeHeight + minVDistance);
Note: See TracChangeset
for help on using the changeset viewer.