Changeset 12600
- Timestamp:
- 07/06/15 14:09:16 (9 years ago)
- Location:
- branches/BubbleChart/HeuristicLab.Optimization.BubbleChart/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BubbleChart/HeuristicLab.Optimization.BubbleChart/3.3/BubbleChartView.Designer.cs
r12498 r12600 61 61 this.levelNumericUpDown = new System.Windows.Forms.NumericUpDown(); 62 62 this.includeChildrenCheckBox = new System.Windows.Forms.CheckBox(); 63 this.sizeTrackBar = new System.Windows.Forms.TrackBar(); 63 64 ((System.ComponentModel.ISupportInitialize)(this.chart)).BeginInit(); 64 65 this.childrenGroupBox.SuspendLayout(); … … 68 69 this.splitContainer.SuspendLayout(); 69 70 ((System.ComponentModel.ISupportInitialize)(this.levelNumericUpDown)).BeginInit(); 71 ((System.ComponentModel.ISupportInitialize)(this.sizeTrackBar)).BeginInit(); 70 72 this.SuspendLayout(); 71 73 // … … 73 75 // 74 76 this.yLabel.AutoSize = true; 75 this.yLabel.Location = new System.Drawing.Point( 305, 6);77 this.yLabel.Location = new System.Drawing.Point(218, 6); 76 78 this.yLabel.Name = "yLabel"; 77 79 this.yLabel.Size = new System.Drawing.Size(15, 13); … … 105 107 series1.YValuesPerPoint = 2; 106 108 this.chart.Series.Add(series1); 107 this.chart.Size = new System.Drawing.Size( 880, 668);109 this.chart.Size = new System.Drawing.Size(965, 668); 108 110 this.chart.TabIndex = 7; 109 111 this.chart.AxisViewChanged += new System.EventHandler<System.Windows.Forms.DataVisualization.Charting.ViewEventArgs>(this.chart_AxisViewChanged); … … 113 115 this.yAxisComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 114 116 this.yAxisComboBox.FormattingEnabled = true; 115 this.yAxisComboBox.Location = new System.Drawing.Point( 326, 3);117 this.yAxisComboBox.Location = new System.Drawing.Point(239, 2); 116 118 this.yAxisComboBox.Name = "yAxisComboBox"; 117 119 this.yAxisComboBox.Size = new System.Drawing.Size(340, 21); … … 138 140 this.treeView.Location = new System.Drawing.Point(6, 19); 139 141 this.treeView.Name = "treeView"; 140 this.treeView.Size = new System.Drawing.Size( 175, 643);142 this.treeView.Size = new System.Drawing.Size(90, 643); 141 143 this.treeView.TabIndex = 10; 142 144 this.treeView.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.treeView_AfterCheck); … … 151 153 this.childrenGroupBox.Location = new System.Drawing.Point(3, 3); 152 154 this.childrenGroupBox.Name = "childrenGroupBox"; 153 this.childrenGroupBox.Size = new System.Drawing.Size(1 87, 668);155 this.childrenGroupBox.Size = new System.Drawing.Size(102, 668); 154 156 this.childrenGroupBox.TabIndex = 11; 155 157 this.childrenGroupBox.TabStop = false; … … 172 174 this.splitContainer.Panel2.Controls.Add(this.chart); 173 175 this.splitContainer.Size = new System.Drawing.Size(1083, 674); 174 this.splitContainer.SplitterDistance = 1 93;176 this.splitContainer.SplitterDistance = 108; 175 177 this.splitContainer.TabIndex = 12; 176 178 // … … 180 182 this.sizeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 181 183 this.sizeComboBox.FormattingEnabled = true; 182 this.sizeComboBox.Location = new System.Drawing.Point( 806, 3);184 this.sizeComboBox.Location = new System.Drawing.Point(728, 2); 183 185 this.sizeComboBox.Name = "sizeComboBox"; 184 186 this.sizeComboBox.Size = new System.Drawing.Size(280, 21); … … 190 192 this.sizeLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 191 193 this.sizeLabel.AutoSize = true; 192 this.sizeLabel.Location = new System.Drawing.Point( 734, 6);194 this.sizeLabel.Location = new System.Drawing.Point(656, 5); 193 195 this.sizeLabel.Name = "sizeLabel"; 194 196 this.sizeLabel.Size = new System.Drawing.Size(66, 13); … … 227 229 this.includeChildrenCheckBox.CheckedChanged += new System.EventHandler(this.includeChildrenCheckBox_CheckedChanged); 228 230 // 231 // sizeTrackBar 232 // 233 this.sizeTrackBar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 234 this.sizeTrackBar.Location = new System.Drawing.Point(1019, 3); 235 this.sizeTrackBar.Maximum = 20; 236 this.sizeTrackBar.Minimum = -20; 237 this.sizeTrackBar.Name = "sizeTrackBar"; 238 this.sizeTrackBar.Size = new System.Drawing.Size(64, 45); 239 this.sizeTrackBar.TabIndex = 18; 240 this.sizeTrackBar.TickFrequency = 20; 241 this.sizeTrackBar.TickStyle = System.Windows.Forms.TickStyle.TopLeft; 242 this.sizeTrackBar.ValueChanged += new System.EventHandler(this.sizeTrackBar_ValueChanged); 243 // 229 244 // BubbleChartView 230 245 // … … 233 248 this.BackColor = System.Drawing.SystemColors.Window; 234 249 this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; 250 this.Controls.Add(this.sizeTrackBar); 235 251 this.Controls.Add(this.includeChildrenCheckBox); 236 252 this.Controls.Add(this.levelNumericUpDown); … … 252 268 this.splitContainer.ResumeLayout(false); 253 269 ((System.ComponentModel.ISupportInitialize)(this.levelNumericUpDown)).EndInit(); 270 ((System.ComponentModel.ISupportInitialize)(this.sizeTrackBar)).EndInit(); 254 271 this.ResumeLayout(false); 255 272 this.PerformLayout(); … … 272 289 private System.Windows.Forms.NumericUpDown levelNumericUpDown; 273 290 private System.Windows.Forms.CheckBox includeChildrenCheckBox; 291 private System.Windows.Forms.TrackBar sizeTrackBar; 274 292 } 275 293 } -
branches/BubbleChart/HeuristicLab.Optimization.BubbleChart/3.3/BubbleChartView.cs
r12598 r12600 379 379 380 380 //invert bubble sizes if the value of the trackbar is negative 381 //if (sizeTrackBar.Value < 0) relativeSize = Math.Abs(relativeSize - 1);381 if (sizeTrackBar.Value < 0) relativeSize = Math.Abs(relativeSize - 1); 382 382 } else relativeSize = 1; 383 383 384 double sizeChange = /*Math.Abs(sizeTrackBar.Value)*/ 10 * relativeSize; 385 //double sizeChange = 0; 384 double sizeChange = Math.Abs(sizeTrackBar.Value) * relativeSize; 386 385 point.MarkerSize = (int)Math.Round(sizeChange + smallestBubbleSize); 387 386 } … … 426 425 updating = false; 427 426 } 427 428 private void sizeTrackBar_ValueChanged(object sender, EventArgs e) { 429 UpdateMarkerSizes(); 430 } 428 431 #endregion 429 432
Note: See TracChangeset
for help on using the changeset viewer.