Changeset 12140 for trunk/sources
- Timestamp:
- 03/05/15 14:30:16 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.Analysis.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis.Views/3.3/HistogramControl.Designer.cs
r12139 r12140 48 48 private void InitializeComponent() { 49 49 this.components = new System.ComponentModel.Container(); 50 System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea 2= new System.Windows.Forms.DataVisualization.Charting.ChartArea();51 System.Windows.Forms.DataVisualization.Charting.Legend legend 2= new System.Windows.Forms.DataVisualization.Charting.Legend();52 System.Windows.Forms.DataVisualization.Charting.Series series 2= new System.Windows.Forms.DataVisualization.Charting.Series();50 System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); 51 System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); 52 System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); 53 53 this.chart = new HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart(); 54 54 this.binsNumericUpDown = new System.Windows.Forms.NumericUpDown(); … … 56 56 this.exactCheckBox = new System.Windows.Forms.CheckBox(); 57 57 this.label2 = new System.Windows.Forms.Label(); 58 this. BandwidthNumericUpDown = new System.Windows.Forms.NumericUpDown();58 this.bandwidthNumericUpDown = new System.Windows.Forms.NumericUpDown(); 59 59 ((System.ComponentModel.ISupportInitialize)(this.chart)).BeginInit(); 60 60 ((System.ComponentModel.ISupportInitialize)(this.binsNumericUpDown)).BeginInit(); 61 ((System.ComponentModel.ISupportInitialize)(this. BandwidthNumericUpDown)).BeginInit();61 ((System.ComponentModel.ISupportInitialize)(this.bandwidthNumericUpDown)).BeginInit(); 62 62 this.SuspendLayout(); 63 63 // … … 67 67 | System.Windows.Forms.AnchorStyles.Left) 68 68 | System.Windows.Forms.AnchorStyles.Right))); 69 chartArea 2.Name = "ChartArea1";70 this.chart.ChartAreas.Add(chartArea 2);71 legend 2.Alignment = System.Drawing.StringAlignment.Center;72 legend 2.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Top;73 legend 2.Name = "Default";74 this.chart.Legends.Add(legend 2);69 chartArea1.Name = "ChartArea1"; 70 this.chart.ChartAreas.Add(chartArea1); 71 legend1.Alignment = System.Drawing.StringAlignment.Center; 72 legend1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Top; 73 legend1.Name = "Default"; 74 this.chart.Legends.Add(legend1); 75 75 this.chart.Location = new System.Drawing.Point(0, 27); 76 76 this.chart.Name = "chart"; 77 series 2.ChartArea = "ChartArea1";78 series 2.Legend = "Default";79 series 2.Name = "Series1";80 this.chart.Series.Add(series 2);77 series1.ChartArea = "ChartArea1"; 78 series1.Legend = "Default"; 79 series1.Name = "Series1"; 80 this.chart.Series.Add(series1); 81 81 this.chart.Size = new System.Drawing.Size(465, 336); 82 82 this.chart.TabIndex = 0; … … 135 135 this.label2.Text = "Bandwidth:"; 136 136 // 137 // BandwidthNumericUpDown137 // bandwidthNumericUpDown 138 138 // 139 this. BandwidthNumericUpDown.DecimalPlaces = 2;140 this. BandwidthNumericUpDown.Location = new System.Drawing.Point(224, 3);141 this. BandwidthNumericUpDown.Maximum = new decimal(new int[] {139 this.bandwidthNumericUpDown.DecimalPlaces = 2; 140 this.bandwidthNumericUpDown.Location = new System.Drawing.Point(224, 3); 141 this.bandwidthNumericUpDown.Maximum = new decimal(new int[] { 142 142 100000000, 143 143 0, 144 144 0, 145 145 0}); 146 this. BandwidthNumericUpDown.Minimum = new decimal(new int[] {146 this.bandwidthNumericUpDown.Minimum = new decimal(new int[] { 147 147 1, 148 148 0, 149 149 0, 150 150 65536}); 151 this. BandwidthNumericUpDown.Name = "BandwidthNumericUpDown";152 this. BandwidthNumericUpDown.Size = new System.Drawing.Size(61, 20);153 this. BandwidthNumericUpDown.TabIndex = 4;154 this. BandwidthNumericUpDown.Value = new decimal(new int[] {151 this.bandwidthNumericUpDown.Name = "bandwidthNumericUpDown"; 152 this.bandwidthNumericUpDown.Size = new System.Drawing.Size(61, 20); 153 this.bandwidthNumericUpDown.TabIndex = 4; 154 this.bandwidthNumericUpDown.Value = new decimal(new int[] { 155 155 1, 156 156 0, 157 157 0, 158 158 0}); 159 this. BandwidthNumericUpDown.ValueChanged += new System.EventHandler(this.BandwidthNumericUpDown_ValueChanged);159 this.bandwidthNumericUpDown.ValueChanged += new System.EventHandler(this.bandwidthNumericUpDown_ValueChanged); 160 160 // 161 161 // HistogramControl … … 163 163 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 164 164 this.Controls.Add(this.label2); 165 this.Controls.Add(this. BandwidthNumericUpDown);165 this.Controls.Add(this.bandwidthNumericUpDown); 166 166 this.Controls.Add(this.exactCheckBox); 167 167 this.Controls.Add(this.label1); … … 172 172 ((System.ComponentModel.ISupportInitialize)(this.chart)).EndInit(); 173 173 ((System.ComponentModel.ISupportInitialize)(this.binsNumericUpDown)).EndInit(); 174 ((System.ComponentModel.ISupportInitialize)(this. BandwidthNumericUpDown)).EndInit();174 ((System.ComponentModel.ISupportInitialize)(this.bandwidthNumericUpDown)).EndInit(); 175 175 this.ResumeLayout(false); 176 176 this.PerformLayout(); … … 185 185 private System.Windows.Forms.CheckBox exactCheckBox; 186 186 private System.Windows.Forms.Label label2; 187 private System.Windows.Forms.NumericUpDown BandwidthNumericUpDown;187 private System.Windows.Forms.NumericUpDown bandwidthNumericUpDown; 188 188 } 189 189 } -
trunk/sources/HeuristicLab.Analysis.Views/3.3/HistogramControl.cs
r12139 r12140 199 199 bandwidth = KernelDensityEstimator.EstimateBandwidth(rowArray); 200 200 suppressUpdate = true; 201 BandwidthNumericUpDown.Value = (decimal)bandwidth;201 bandwidthNumericUpDown.Value = (decimal)bandwidth; 202 202 } 203 203 var density = KernelDensityEstimator.Density(rowArray, rowArray.Length, stepWidth, bandwidth); … … 234 234 } 235 235 236 private void BandwidthNumericUpDown_ValueChanged(object sender, EventArgs e) {236 private void bandwidthNumericUpDown_ValueChanged(object sender, EventArgs e) { 237 237 if (!suppressUpdate) { 238 UpdateHistogram(decimal.ToDouble( BandwidthNumericUpDown.Value));238 UpdateHistogram(decimal.ToDouble(bandwidthNumericUpDown.Value)); 239 239 } 240 240 suppressUpdate = false;
Note: See TracChangeset
for help on using the changeset viewer.