- Timestamp:
- 06/01/10 17:58:03 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/DataAnalysisProblemDataView.cs
r3758 r3884 39 39 public new DataAnalysisProblemData Content { 40 40 get { return (DataAnalysisProblemData)base.Content; } 41 set { 42 base.Content = value; 43 } 41 set { base.Content = value; } 44 42 } 45 43 -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/HeuristicLab.Problems.DataAnalysis.Views-3.3.csproj
r3853 r3884 86 86 <None Include="HeuristicLabProblemsDataAnalysisViewsPlugin.cs.frame" /> 87 87 <None Include="Properties\AssemblyInfo.frame" /> 88 <Compile Include="DataAnalysisSolutionView.cs"> 89 <SubType>UserControl</SubType> 90 </Compile> 91 <Compile Include="DataAnalysisSolutionView.Designer.cs"> 92 <DependentUpon>DataAnalysisSolutionView.cs</DependentUpon> 93 </Compile> 88 94 <Compile Include="SupportVectorRegressionSolutionView.cs"> 89 95 <SubType>UserControl</SubType> -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/SupportVectorRegressionSolutionView.Designer.cs
r3858 r3884 44 44 /// </summary> 45 45 private void InitializeComponent() { 46 this.modelTabControl = new System.Windows.Forms.TabControl();47 this.modelTabPage = new System.Windows.Forms.TabPage();48 this.modelPanel = new HeuristicLab.MainForm.WindowsForms.ViewHost();49 this.dataTabPage = new System.Windows.Forms.TabPage();50 this.dataPanel = new HeuristicLab.MainForm.WindowsForms.ViewHost();51 46 this.supportVectorTabControl = new System.Windows.Forms.TabPage(); 52 47 this.supportVectorViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost(); 53 this.modelTabControl.SuspendLayout();54 this.modelTabPage.SuspendLayout();55 this.dataTabPage.SuspendLayout();56 48 this.supportVectorTabControl.SuspendLayout(); 57 49 this.SuspendLayout(); 58 //59 // modelTabControl60 //61 this.modelTabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)62 | System.Windows.Forms.AnchorStyles.Left)63 | System.Windows.Forms.AnchorStyles.Right)));64 this.modelTabControl.Controls.Add(this.modelTabPage);65 this.modelTabControl.Controls.Add(this.dataTabPage);66 this.modelTabControl.Controls.Add(this.supportVectorTabControl);67 this.modelTabControl.Location = new System.Drawing.Point(3, 3);68 this.modelTabControl.Name = "modelTabControl";69 this.modelTabControl.SelectedIndex = 0;70 this.modelTabControl.Size = new System.Drawing.Size(247, 245);71 this.modelTabControl.TabIndex = 0;72 //73 // modelTabPage74 //75 this.modelTabPage.Controls.Add(this.modelPanel);76 this.modelTabPage.Location = new System.Drawing.Point(4, 22);77 this.modelTabPage.Name = "modelTabPage";78 this.modelTabPage.Padding = new System.Windows.Forms.Padding(3);79 this.modelTabPage.Size = new System.Drawing.Size(239, 219);80 this.modelTabPage.TabIndex = 0;81 this.modelTabPage.Text = "Model";82 this.modelTabPage.UseVisualStyleBackColor = true;83 //84 // modelPanel85 //86 this.modelPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)87 | System.Windows.Forms.AnchorStyles.Left)88 | System.Windows.Forms.AnchorStyles.Right)));89 this.modelPanel.Caption = "View";90 this.modelPanel.Content = null;91 this.modelPanel.Location = new System.Drawing.Point(6, 6);92 this.modelPanel.Name = "modelPanel";93 this.modelPanel.ReadOnly = false;94 this.modelPanel.Size = new System.Drawing.Size(227, 207);95 this.modelPanel.TabIndex = 0;96 this.modelPanel.ViewType = null;97 //98 // dataTabPage99 //100 this.dataTabPage.Controls.Add(this.dataPanel);101 this.dataTabPage.Location = new System.Drawing.Point(4, 22);102 this.dataTabPage.Name = "dataTabPage";103 this.dataTabPage.Padding = new System.Windows.Forms.Padding(3);104 this.dataTabPage.Size = new System.Drawing.Size(239, 219);105 this.dataTabPage.TabIndex = 1;106 this.dataTabPage.Text = "Data";107 this.dataTabPage.UseVisualStyleBackColor = true;108 //109 // dataPanel110 //111 this.dataPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)112 | System.Windows.Forms.AnchorStyles.Left)113 | System.Windows.Forms.AnchorStyles.Right)));114 this.dataPanel.Caption = "View";115 this.dataPanel.Content = null;116 this.dataPanel.Location = new System.Drawing.Point(6, 6);117 this.dataPanel.Name = "dataPanel";118 this.dataPanel.ReadOnly = false;119 this.dataPanel.Size = new System.Drawing.Size(227, 207);120 this.dataPanel.TabIndex = 0;121 this.dataPanel.ViewType = null;122 50 // 123 51 // supportVectorTabControl … … 151 79 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 152 80 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 153 this.Controls.Add(this.modelTabControl);154 81 this.Name = "SupportVectorRegressionSolutionView"; 155 this.Size = new System.Drawing.Size(253, 251); 156 this.modelTabControl.ResumeLayout(false); 157 this.modelTabPage.ResumeLayout(false); 158 this.dataTabPage.ResumeLayout(false); 82 this.tabControl.TabPages.Add(supportVectorTabControl); 159 83 this.supportVectorTabControl.ResumeLayout(false); 160 84 this.ResumeLayout(false); … … 164 88 #endregion 165 89 166 private System.Windows.Forms.TabControl modelTabControl;167 private System.Windows.Forms.TabPage modelTabPage;168 private HeuristicLab.MainForm.WindowsForms.ViewHost modelPanel;169 private System.Windows.Forms.TabPage dataTabPage;170 private HeuristicLab.MainForm.WindowsForms.ViewHost dataPanel;171 90 private System.Windows.Forms.TabPage supportVectorTabControl; 172 91 private HeuristicLab.MainForm.WindowsForms.ViewHost supportVectorViewHost; 173 174 175 92 } 176 93 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/SupportVectorRegressionSolutionView.cs
r3858 r3884 40 40 [View("Support Vector Regression Solution View")] 41 41 [Content(typeof(SupportVectorRegressionSolution))] 42 public partial class SupportVectorRegressionSolutionView : AsynchronousContentView {42 public partial class SupportVectorRegressionSolutionView : DataAnalysisSolutionView { 43 43 44 44 public new SupportVectorRegressionSolution Content { 45 45 get { return (SupportVectorRegressionSolution)base.Content; } 46 set { 47 base.Content = value; 48 } 46 set { base.Content = value; } 49 47 } 50 48 … … 57 55 base.OnContentChanged(); 58 56 if (Content != null) { 59 dataPanel.Content = Content.ProblemData;60 modelPanel.Content = Content.Model;61 57 supportVectorViewHost.Content = Content.SupportVectors; 62 58 } else { 63 dataPanel.Content = null;64 modelPanel.Content = null;65 59 supportVectorViewHost.Content = null; 66 60 } 67 61 } 68 protected override void RegisterContentEvents() {69 base.RegisterContentEvents();70 Content.ProblemDataChanged += new EventHandler(Content_ProblemDataChanged);71 }72 73 protected override void DeregisterContentEvents() {74 base.DeregisterContentEvents();75 }76 77 private void Content_ProblemDataChanged(object sender, EventArgs e) {78 dataPanel.Content = Content.ProblemData;79 }80 62 } 81 63 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/SimplifiedSymbolicExpressionModelView.cs
r3797 r3884 39 39 namespace HeuristicLab.Problems.DataAnalysis.Views.Symbolic { 40 40 [View("Simplified Symbolic Expression Model View")] 41 [Content(typeof(SymbolicRegression Solution))]41 [Content(typeof(SymbolicRegressionModel))] 42 42 public partial class SimplifiedSymbolicExpressionModelView : AsynchronousContentView { 43 public new SymbolicRegressionSolution Content {44 get { return (SymbolicRegressionSolution)base.Content; }45 set { base.Content = value; }46 }47 48 49 43 public SimplifiedSymbolicExpressionModelView() 50 44 : base() { … … 52 46 } 53 47 54 protected override void RegisterContentEvents() { 55 base.RegisterContentEvents(); 56 Content.ModelChanged += new EventHandler(Content_ModelChanged); 57 } 58 59 protected override void DeregisterContentEvents() { 60 base.DeregisterContentEvents(); 61 Content.ModelChanged -= new EventHandler(Content_ModelChanged); 62 } 63 64 void Content_ModelChanged(object sender, EventArgs e) { 65 UpdateTreeChart(); 48 public new SymbolicRegressionModel Content { 49 get { return (SymbolicRegressionModel)base.Content; } 50 set { base.Content = value; } 66 51 } 67 52 68 53 protected override void OnContentChanged() { 69 54 base.OnContentChanged(); 70 UpdateTreeChart(); 55 if (Content != null) 56 UpdateTreeChart(); 57 else 58 viewHost.Content = null; 71 59 } 72 60 73 61 private void UpdateTreeChart() { 74 62 var simplifier = new SymbolicSimplifier(); 75 var simplifiedTree = simplifier.Simplify(Content. Model.SymbolicExpressionTree);63 var simplifiedTree = simplifier.Simplify(Content.SymbolicExpressionTree); 76 64 viewHost.Content = simplifiedTree; 77 65 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/SymbolicExpressionModelView.cs
r3797 r3884 39 39 namespace HeuristicLab.Problems.DataAnalysis.Views.Symbolic { 40 40 [View("Symbolic Expression Model View")] 41 [Content(typeof(SymbolicRegression Solution))]41 [Content(typeof(SymbolicRegressionModel),true)] 42 42 public partial class SymbolicExpressionModelView : AsynchronousContentView { 43 public new SymbolicRegressionSolution Content {44 get { return (SymbolicRegressionSolution)base.Content; }45 set { base.Content = value; }46 }47 48 43 public SymbolicExpressionModelView() 49 44 : base() { … … 51 46 } 52 47 53 protected override void RegisterContentEvents() { 54 base.RegisterContentEvents(); 55 Content.ModelChanged += new EventHandler(Content_ModelChanged); 56 } 57 58 protected override void DeregisterContentEvents() { 59 base.DeregisterContentEvents(); 60 Content.ModelChanged -= new EventHandler(Content_ModelChanged); 61 } 62 63 void Content_ModelChanged(object sender, EventArgs e) { 64 UpdateTreeChart(); 48 public new SymbolicRegressionModel Content { 49 get { return (SymbolicRegressionModel)base.Content; } 50 set { base.Content = value; } 65 51 } 66 52 67 53 protected override void OnContentChanged() { 68 54 base.OnContentChanged(); 69 UpdateTreeChart(); 55 if (Content != null) 56 UpdateTreeChart(); 57 else 58 viewHost.Content = null; 70 59 } 71 60 72 61 private void UpdateTreeChart() { 73 viewHost.Content = Content. Model.SymbolicExpressionTree;62 viewHost.Content = Content.SymbolicExpressionTree; 74 63 } 75 64 }
Note: See TracChangeset
for help on using the changeset viewer.