Changeset 14014
- Timestamp:
- 07/07/16 11:41:59 (8 years ago)
- Location:
- branches/HeuristicLab.RegressionSolutionGradientView/HeuristicLab.Problems.DataAnalysis.Views/3.4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.RegressionSolutionGradientView/HeuristicLab.Problems.DataAnalysis.Views/3.4/GradientChart.cs
r14006 r14014 48 48 49 49 #region Properties 50 public string XAxisTitle { 51 get { return chart.ChartAreas[0].AxisX.Title; } 52 set { chart.ChartAreas[0].AxisX.Title = value; } 53 } 54 55 public string YAxisTitle { 56 get { return chart.ChartAreas[0].AxisY.Title; } 57 set { chart.ChartAreas[0].AxisY.Title = value; } 58 } 59 50 60 public bool ShowLegend { 51 61 get { return chart.Legends[0].Enabled; } … … 218 228 chart.ContextMenuStrip.Items.Add(new ToolStripSeparator()); 219 229 chart.ContextMenuStrip.Items.Add(configToolStripMenuItem); 220 221 230 configurationDialog = new GradientChartConfigurationDialog(this); 222 231 -
branches/HeuristicLab.RegressionSolutionGradientView/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionGradientView.cs
r13853 r14014 25 25 using System.Windows.Forms; 26 26 using HeuristicLab.Collections; 27 using HeuristicLab.Core.Views; 27 28 using HeuristicLab.MainForm; 28 29 using HeuristicLab.MainForm.WindowsForms; 29 30 using HeuristicLab.Problems.DataAnalysis; 30 using HeuristicLab.Problems.DataAnalysis.Views;31 31 using HeuristicLab.Visualization.ChartControlsExtensions; 32 32 … … 34 34 [View("Gradient View")] 35 35 [Content(typeof(IRegressionSolution))] 36 public partial class RegressionSolutionGradientView : DataAnalysisSolutionEvaluationView {36 public partial class RegressionSolutionGradientView : ItemView { 37 37 private const int DrawingSteps = 1000; 38 38 -
branches/HeuristicLab.RegressionSolutionGradientView/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionTargetResponseGradientView.Designer.cs
r13999 r14014 31 31 this.automaticYAxisCheckBox = new System.Windows.Forms.CheckBox(); 32 32 this.densityGroupBox = new System.Windows.Forms.GroupBox(); 33 this.columnsTextBox = new System.Windows.Forms.TextBox(); 34 this.columnsLabel = new System.Windows.Forms.Label(); 33 35 this.densityComboBox = new System.Windows.Forms.ComboBox(); 36 this.label1 = new System.Windows.Forms.Label(); 34 37 this.configSplitContainer = new System.Windows.Forms.SplitContainer(); 35 38 this.variableGroupBox = new System.Windows.Forms.GroupBox(); 36 this.layoutGroupBox = new System.Windows.Forms.GroupBox();37 this.columnsTextBox = new System.Windows.Forms.TextBox();38 this.columnsLabel = new System.Windows.Forms.Label();39 39 this.scrollPanel = new System.Windows.Forms.Panel(); 40 40 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components); … … 46 46 this.configSplitContainer.SuspendLayout(); 47 47 this.variableGroupBox.SuspendLayout(); 48 this.layoutGroupBox.SuspendLayout();49 48 this.scrollPanel.SuspendLayout(); 50 49 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); … … 57 56 this.variableListView.Location = new System.Drawing.Point(3, 16); 58 57 this.variableListView.Name = "variableListView"; 59 this.variableListView.Size = new System.Drawing.Size(163, 4 58);58 this.variableListView.Size = new System.Drawing.Size(163, 478); 60 59 this.variableListView.TabIndex = 0; 61 60 this.variableListView.UseCompatibleStateImageBehavior = false; … … 113 112 // densityGroupBox 114 113 // 114 this.densityGroupBox.Controls.Add(this.columnsTextBox); 115 this.densityGroupBox.Controls.Add(this.columnsLabel); 115 116 this.densityGroupBox.Controls.Add(this.densityComboBox); 117 this.densityGroupBox.Controls.Add(this.label1); 116 118 this.densityGroupBox.Dock = System.Windows.Forms.DockStyle.Top; 117 119 this.densityGroupBox.Location = new System.Drawing.Point(0, 77); 118 120 this.densityGroupBox.Name = "densityGroupBox"; 119 this.densityGroupBox.Size = new System.Drawing.Size(169, 49);121 this.densityGroupBox.Size = new System.Drawing.Size(169, 74); 120 122 this.densityGroupBox.TabIndex = 3; 121 123 this.densityGroupBox.TabStop = false; 122 this.densityGroupBox.Text = "Density"; 124 this.densityGroupBox.Text = "Settings"; 125 // 126 // columnsTextBox 127 // 128 this.columnsTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 129 | System.Windows.Forms.AnchorStyles.Right))); 130 this.columnsTextBox.Location = new System.Drawing.Point(66, 46); 131 this.columnsTextBox.Name = "columnsTextBox"; 132 this.columnsTextBox.Size = new System.Drawing.Size(94, 20); 133 this.columnsTextBox.TabIndex = 1; 134 this.columnsTextBox.Validating += new System.ComponentModel.CancelEventHandler(this.columnsTextBox_Validating); 135 this.columnsTextBox.Validated += new System.EventHandler(this.columnsTextBox_Validated); 136 // 137 // columnsLabel 138 // 139 this.columnsLabel.AutoSize = true; 140 this.columnsLabel.Location = new System.Drawing.Point(7, 49); 141 this.columnsLabel.Name = "columnsLabel"; 142 this.columnsLabel.Size = new System.Drawing.Size(50, 13); 143 this.columnsLabel.TabIndex = 0; 144 this.columnsLabel.Text = "Columns:"; 123 145 // 124 146 // densityComboBox … … 133 155 "Test", 134 156 "All"}); 135 this.densityComboBox.Location = new System.Drawing.Point(6 , 19);157 this.densityComboBox.Location = new System.Drawing.Point(66, 19); 136 158 this.densityComboBox.Name = "densityComboBox"; 137 this.densityComboBox.Size = new System.Drawing.Size( 157, 21);159 this.densityComboBox.Size = new System.Drawing.Size(94, 21); 138 160 this.densityComboBox.TabIndex = 0; 139 161 this.densityComboBox.SelectedIndexChanged += new System.EventHandler(this.densityComboBox_SelectedIndexChanged); 162 // 163 // label1 164 // 165 this.label1.AutoSize = true; 166 this.label1.Location = new System.Drawing.Point(7, 22); 167 this.label1.Name = "label1"; 168 this.label1.Size = new System.Drawing.Size(45, 13); 169 this.label1.TabIndex = 0; 170 this.label1.Text = "Density:"; 140 171 // 141 172 // configSplitContainer … … 149 180 // 150 181 this.configSplitContainer.Panel1.Controls.Add(this.variableGroupBox); 151 this.configSplitContainer.Panel1.Controls.Add(this.layoutGroupBox);152 182 this.configSplitContainer.Panel1.Controls.Add(this.densityGroupBox); 153 183 this.configSplitContainer.Panel1.Controls.Add(this.yAxisConfigGroupBox); … … 159 189 this.configSplitContainer.SplitterDistance = 169; 160 190 this.configSplitContainer.TabIndex = 0; 191 this.configSplitContainer.TabStop = false; 161 192 // 162 193 // variableGroupBox … … 164 195 this.variableGroupBox.Controls.Add(this.variableListView); 165 196 this.variableGroupBox.Dock = System.Windows.Forms.DockStyle.Fill; 166 this.variableGroupBox.Location = new System.Drawing.Point(0, 1 71);197 this.variableGroupBox.Location = new System.Drawing.Point(0, 151); 167 198 this.variableGroupBox.Name = "variableGroupBox"; 168 this.variableGroupBox.Size = new System.Drawing.Size(169, 4 77);199 this.variableGroupBox.Size = new System.Drawing.Size(169, 497); 169 200 this.variableGroupBox.TabIndex = 1; 170 201 this.variableGroupBox.TabStop = false; 171 202 this.variableGroupBox.Text = "Variables"; 172 //173 // layoutGroupBox174 //175 this.layoutGroupBox.Controls.Add(this.columnsTextBox);176 this.layoutGroupBox.Controls.Add(this.columnsLabel);177 this.layoutGroupBox.Dock = System.Windows.Forms.DockStyle.Top;178 this.layoutGroupBox.Location = new System.Drawing.Point(0, 126);179 this.layoutGroupBox.Name = "layoutGroupBox";180 this.layoutGroupBox.Size = new System.Drawing.Size(169, 45);181 this.layoutGroupBox.TabIndex = 5;182 this.layoutGroupBox.TabStop = false;183 this.layoutGroupBox.Text = "Layout";184 //185 // columnsTextBox186 //187 this.columnsTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)188 | System.Windows.Forms.AnchorStyles.Right)));189 this.columnsTextBox.Location = new System.Drawing.Point(66, 17);190 this.columnsTextBox.Name = "columnsTextBox";191 this.columnsTextBox.Size = new System.Drawing.Size(94, 20);192 this.columnsTextBox.TabIndex = 1;193 this.columnsTextBox.Validating += new System.ComponentModel.CancelEventHandler(this.columnsTextBox_Validating);194 this.columnsTextBox.Validated += new System.EventHandler(this.columnsTextBox_Validated);195 //196 // columnsLabel197 //198 this.columnsLabel.AutoSize = true;199 this.columnsLabel.Location = new System.Drawing.Point(7, 20);200 this.columnsLabel.Name = "columnsLabel";201 this.columnsLabel.Size = new System.Drawing.Size(50, 13);202 this.columnsLabel.TabIndex = 0;203 this.columnsLabel.Text = "Columns:";204 203 // 205 204 // scrollPanel … … 227 226 this.yAxisConfigGroupBox.PerformLayout(); 228 227 this.densityGroupBox.ResumeLayout(false); 228 this.densityGroupBox.PerformLayout(); 229 229 this.configSplitContainer.Panel1.ResumeLayout(false); 230 230 this.configSplitContainer.Panel2.ResumeLayout(false); … … 232 232 this.configSplitContainer.ResumeLayout(false); 233 233 this.variableGroupBox.ResumeLayout(false); 234 this.layoutGroupBox.ResumeLayout(false);235 this.layoutGroupBox.PerformLayout();236 234 this.scrollPanel.ResumeLayout(false); 237 235 this.scrollPanel.PerformLayout(); … … 253 251 private System.Windows.Forms.GroupBox variableGroupBox; 254 252 private System.Windows.Forms.Panel scrollPanel; 255 private System.Windows.Forms.GroupBox layoutGroupBox;256 253 private System.Windows.Forms.TextBox columnsTextBox; 257 254 private System.Windows.Forms.Label columnsLabel; 258 255 private System.Windows.Forms.ErrorProvider errorProvider; 256 private System.Windows.Forms.Label label1; 259 257 } 260 258 } -
branches/HeuristicLab.RegressionSolutionGradientView/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionTargetResponseGradientView.cs
r13999 r14014 31 31 32 32 namespace HeuristicLab.Problems.DataAnalysis.Views { 33 [View("Target Response Gradient View")]33 [View("Target Response Gradients")] 34 34 [Content(typeof(IRegressionSolution))] 35 35 public partial class RegressionSolutionTargetResponseGradientView : DataAnalysisSolutionEvaluationView { … … 209 209 tl.Controls.Clear(); 210 210 int row = 0, column = 0; 211 foreach (var chartsPanel in VisibleChartsPanels) { 211 foreach (var v in VisibleVariables) { 212 var chartsPanel = groupingPanels[v]; 212 213 tl.Controls.Add(chartsPanel, column, row); 214 215 if (column == 0) { 216 var chart = gradientCharts[v]; 217 chart.YAxisTitle = Content.ProblemData.TargetVariable; 218 } 219 213 220 column++; 221 214 222 if (column == MaxColumns) { 215 223 row++; … … 361 369 ReOrderControls(); 362 370 SetStyles(); 363 tl.ResumeLayout( );371 tl.ResumeLayout(true); 364 372 } 365 373 }
Note: See TracChangeset
for help on using the changeset viewer.