Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionTreeChart.Designer.cs @ 10884

Last change on this file since 10884 was 10520, checked in by bburlacu, 11 years ago

#2076: Got rid of layout adapters. Extracted the previous drawing code and made it into another layout engine called the BoxesLayoutEngine (because it divides the areas necessary for each subtree into boxes and recursively applies the layout). Simplified usage of layout engine so that most of the things are handled internally, and the user just has to provide some lambdas telling the engine how to navigate the original tree. Added context option in the SymbolicExpressionTreeChart to choose which layout engine to use for tree drawing. Moved the SymbolicExpressionTreeLatexFormatter to the HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views assembly because it depends on the layout engine.

File size: 6.6 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views {
23  public partial class SymbolicExpressionTreeChart {
24    /// <summary>
25    /// Required designer variable.
26    /// </summary>
27    private System.ComponentModel.IContainer components = null;
28
29    /// <summary>
30    /// Clean up any resources being used.
31    /// </summary>
32    /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
33    protected override void Dispose(bool disposing) {
34      if (disposing && (components != null)) {
35        components.Dispose();
36      }
37      base.Dispose(disposing);
38    }
39
40    #region Component Designer generated code
41
42    /// <summary>
43    /// Required method for Designer support - do not modify
44    /// the contents of this method with the code editor.
45    /// </summary>
46    private void InitializeComponent() {
47      this.components = new System.ComponentModel.Container();
48      this.toolTip = new System.Windows.Forms.ToolTip(this.components);
49      this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
50      this.saveImageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
51      this.exportPgfLaTeXToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
52      this.layoutEngineToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
53      this.reingoldTilfordToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
54      this.boxesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
55      this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
56      this.contextMenuStrip.SuspendLayout();
57      this.SuspendLayout();
58      //
59      // contextMenuStrip
60      //
61      this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
62            this.saveImageToolStripMenuItem,
63            this.exportPgfLaTeXToolStripMenuItem,
64            this.layoutEngineToolStripMenuItem});
65      this.contextMenuStrip.Name = "contextMenuStrip";
66      this.contextMenuStrip.Size = new System.Drawing.Size(166, 70);
67      //
68      // saveImageToolStripMenuItem
69      //
70      this.saveImageToolStripMenuItem.Name = "saveImageToolStripMenuItem";
71      this.saveImageToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
72      this.saveImageToolStripMenuItem.Text = "Save Image";
73      this.saveImageToolStripMenuItem.Click += new System.EventHandler(this.saveImageToolStripMenuItem_Click);
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);
81      //
82      // layoutEngineToolStripMenuItem
83      //
84      this.layoutEngineToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
85            this.reingoldTilfordToolStripMenuItem,
86            this.boxesToolStripMenuItem});
87      this.layoutEngineToolStripMenuItem.Name = "layoutEngineToolStripMenuItem";
88      this.layoutEngineToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
89      this.layoutEngineToolStripMenuItem.Text = "Layout Engine:";
90      //
91      // reingoldTilfordToolStripMenuItem
92      //
93      this.reingoldTilfordToolStripMenuItem.Name = "reingoldTilfordToolStripMenuItem";
94      this.reingoldTilfordToolStripMenuItem.Size = new System.Drawing.Size(161, 22);
95      this.reingoldTilfordToolStripMenuItem.Text = "Reingold-Tilford";
96      this.reingoldTilfordToolStripMenuItem.Click += new System.EventHandler(this.reingoldTilfordToolStripMenuItem_Click);
97      //
98      // boxesToolStripMenuItem
99      //
100      this.boxesToolStripMenuItem.Name = "boxesToolStripMenuItem";
101      this.boxesToolStripMenuItem.Size = new System.Drawing.Size(161, 22);
102      this.boxesToolStripMenuItem.Text = "Boxes";
103      this.boxesToolStripMenuItem.Click += new System.EventHandler(this.boxesToolStripMenuItem_Click);
104      //
105      // saveFileDialog
106      //
107      this.saveFileDialog.Filter = "Bitmap (*.bmp)|*.bmp|EMF (*.emf)|*.emf";
108      //
109      // SymbolicExpressionTreeChart
110      //
111      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
112      this.ContextMenuStrip = this.contextMenuStrip;
113      this.DoubleBuffered = true;
114      this.Name = "SymbolicExpressionTreeChart";
115      this.MouseClick += new System.Windows.Forms.MouseEventHandler(this.SymbolicExpressionTreeChart_MouseClick);
116      this.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.SymbolicExpressionTreeChart_MouseDoubleClick);
117      this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.SymbolicExpressionTreeChart_MouseDown);
118      this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.SymbolicExpressionTreeChart_MouseMove);
119      this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.SymbolicExpressionTreeChart_MouseUp);
120      this.contextMenuStrip.ResumeLayout(false);
121      this.ResumeLayout(false);
122
123    }
124
125    #endregion
126
127    protected System.Windows.Forms.ToolTip toolTip;
128    protected System.Windows.Forms.ContextMenuStrip contextMenuStrip;
129    protected System.Windows.Forms.ToolStripMenuItem saveImageToolStripMenuItem;
130    protected System.Windows.Forms.SaveFileDialog saveFileDialog;
131    private System.Windows.Forms.ToolStripMenuItem exportPgfLaTeXToolStripMenuItem;
132    private System.Windows.Forms.ToolStripMenuItem layoutEngineToolStripMenuItem;
133    private System.Windows.Forms.ToolStripMenuItem reingoldTilfordToolStripMenuItem;
134    private System.Windows.Forms.ToolStripMenuItem boxesToolStripMenuItem;
135  }
136}
Note: See TracBrowser for help on using the repository browser.