Changeset 1561 for trunk/sources/HeuristicLab.Visualization
- Timestamp:
- 04/15/09 18:55:24 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Visualization/3.2
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/3.2/DataRow.cs
r1530 r1561 30 30 31 31 public DataRow(string label, Color color, int thickness, DrawingStyle style, List<double> dataRow) { 32 this.Label = label;32 this.Label = label; 33 33 this.Color = color; 34 34 this.Thickness = thickness; 35 35 this.Style = style; 36 this.dataRow = dataRow; 37 this.ShowMarkers = true; 38 } 39 40 public DataRow(string label, Color color, int thickness, DrawingStyle style, List<double> dataRow, bool showMarkers) { 41 this.Label = label; 42 this.Color = color; 43 this.Thickness = thickness; 44 this.Style = style; 45 this.ShowMarkers = showMarkers; 36 46 this.dataRow = dataRow; 37 47 } -
trunk/sources/HeuristicLab.Visualization/3.2/DataRowBase.cs
r1530 r1561 9 9 private DataRowType lineType = DataRowType.Normal; 10 10 private YAxisDescriptor yAxis; 11 private bool showMarkers = true; 12 13 public bool ShowMarkers { 14 get { return showMarkers; } 15 set { 16 showMarkers = value; 17 OnDataRowChanged(this); 18 } 19 } 11 20 12 21 public string Label { -
trunk/sources/HeuristicLab.Visualization/3.2/IDataRow.cs
r1530 r1561 12 12 DrawingStyle Style { get; set; } 13 13 DataRowType LineType { get; set; } 14 bool ShowMarkers { get; set; } 14 15 15 16 YAxisDescriptor YAxis { get; set; } -
trunk/sources/HeuristicLab.Visualization/3.2/LineChart.cs
r1559 r1561 389 389 } 390 390 } else { 391 rowEntry.showMarkers(row.ShowMarkers); 391 392 for (int i = 1; i < row.Count; i++) { 392 393 LineShape lineShape = new LineShape(i - 1, row[i - 1], i, row[i], row.Color, row.Thickness, row.Style); … … 602 603 } 603 604 } 605 this.markersShape.ShowChildShapes = row.ShowMarkers; 604 606 } 605 607 … … 648 650 } 649 651 650 public void hideMarkers() { 651 linesShape.markersShape.ShowChildShapes = false; 652 } 653 654 public void showMarkers() { 655 linesShape.markersShape.ShowChildShapes = true; 652 public void showMarkers(bool flag) { 653 linesShape.markersShape.ShowChildShapes = flag; 656 654 } 657 655 } -
trunk/sources/HeuristicLab.Visualization/3.2/Options/OptionsDialog.Designer.cs
r1459 r1561 48 48 this.btnChangeXAxisFont = new System.Windows.Forms.Button(); 49 49 this.tpYAxes = new System.Windows.Forms.TabPage(); 50 this.gbxYAxisClipChangeable = new System.Windows.Forms.GroupBox(); 51 this.flpYAxisClipChangeable = new System.Windows.Forms.FlowLayoutPanel(); 50 52 this.gbxShowYAxis = new System.Windows.Forms.GroupBox(); 51 this.gbxYAxisClipChangeable = new System.Windows.Forms.GroupBox();52 53 this.flpShowYAxis = new System.Windows.Forms.FlowLayoutPanel(); 53 this. flpYAxisClipChangeable = new System.Windows.Forms.FlowLayoutPanel();54 this.MarkercheckBox = new System.Windows.Forms.CheckBox(); 54 55 this.tpTitle.SuspendLayout(); 55 56 this.tabPage2.SuspendLayout(); … … 59 60 this.tpXAxis.SuspendLayout(); 60 61 this.tpYAxes.SuspendLayout(); 62 this.gbxYAxisClipChangeable.SuspendLayout(); 61 63 this.gbxShowYAxis.SuspendLayout(); 62 this.gbxYAxisClipChangeable.SuspendLayout();63 64 this.SuspendLayout(); 64 65 // … … 224 225 // groupBox1 225 226 // 227 this.groupBox1.Controls.Add(this.MarkercheckBox); 226 228 this.groupBox1.Controls.Add(this.label4); 227 229 this.groupBox1.Controls.Add(this.LineThicknessCB); … … 307 309 this.tpYAxes.UseVisualStyleBackColor = true; 308 310 // 311 // gbxYAxisClipChangeable 312 // 313 this.gbxYAxisClipChangeable.AutoSize = true; 314 this.gbxYAxisClipChangeable.Controls.Add(this.flpYAxisClipChangeable); 315 this.gbxYAxisClipChangeable.Location = new System.Drawing.Point(0, 82); 316 this.gbxYAxisClipChangeable.Name = "gbxYAxisClipChangeable"; 317 this.gbxYAxisClipChangeable.Size = new System.Drawing.Size(281, 76); 318 this.gbxYAxisClipChangeable.TabIndex = 1; 319 this.gbxYAxisClipChangeable.TabStop = false; 320 this.gbxYAxisClipChangeable.Text = "Y-Axis-Clip changeable"; 321 // 322 // flpYAxisClipChangeable 323 // 324 this.flpYAxisClipChangeable.AutoSize = true; 325 this.flpYAxisClipChangeable.Dock = System.Windows.Forms.DockStyle.Fill; 326 this.flpYAxisClipChangeable.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; 327 this.flpYAxisClipChangeable.Location = new System.Drawing.Point(3, 16); 328 this.flpYAxisClipChangeable.Name = "flpYAxisClipChangeable"; 329 this.flpYAxisClipChangeable.Size = new System.Drawing.Size(275, 57); 330 this.flpYAxisClipChangeable.TabIndex = 0; 331 // 309 332 // gbxShowYAxis 310 333 // … … 318 341 this.gbxShowYAxis.Text = "Show Y-Axis"; 319 342 // 320 // gbxYAxisClipChangeable321 //322 this.gbxYAxisClipChangeable.AutoSize = true;323 this.gbxYAxisClipChangeable.Controls.Add(this.flpYAxisClipChangeable);324 this.gbxYAxisClipChangeable.Location = new System.Drawing.Point(0, 82);325 this.gbxYAxisClipChangeable.Name = "gbxYAxisClipChangeable";326 this.gbxYAxisClipChangeable.Size = new System.Drawing.Size(281, 76);327 this.gbxYAxisClipChangeable.TabIndex = 1;328 this.gbxYAxisClipChangeable.TabStop = false;329 this.gbxYAxisClipChangeable.Text = "Y-Axis-Clip changeable";330 //331 343 // flpShowYAxis 332 344 // … … 339 351 this.flpShowYAxis.TabIndex = 0; 340 352 // 341 // flpYAxisClipChangeable 342 // 343 this.flpYAxisClipChangeable.AutoSize = true; 344 this.flpYAxisClipChangeable.Dock = System.Windows.Forms.DockStyle.Fill; 345 this.flpYAxisClipChangeable.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; 346 this.flpYAxisClipChangeable.Location = new System.Drawing.Point(3, 16); 347 this.flpYAxisClipChangeable.Name = "flpYAxisClipChangeable"; 348 this.flpYAxisClipChangeable.Size = new System.Drawing.Size(275, 57); 349 this.flpYAxisClipChangeable.TabIndex = 0; 353 // MarkercheckBox 354 // 355 this.MarkercheckBox.AutoSize = true; 356 this.MarkercheckBox.Location = new System.Drawing.Point(142, 106); 357 this.MarkercheckBox.Name = "MarkercheckBox"; 358 this.MarkercheckBox.Size = new System.Drawing.Size(59, 17); 359 this.MarkercheckBox.TabIndex = 9; 360 this.MarkercheckBox.Text = "Marker"; 361 this.MarkercheckBox.UseVisualStyleBackColor = true; 362 this.MarkercheckBox.CheckedChanged += new System.EventHandler(this.MarkercheckBox_CheckedChanged); 350 363 // 351 364 // OptionsDialog … … 373 386 this.tpYAxes.ResumeLayout(false); 374 387 this.tpYAxes.PerformLayout(); 388 this.gbxYAxisClipChangeable.ResumeLayout(false); 389 this.gbxYAxisClipChangeable.PerformLayout(); 375 390 this.gbxShowYAxis.ResumeLayout(false); 376 391 this.gbxShowYAxis.PerformLayout(); 377 this.gbxYAxisClipChangeable.ResumeLayout(false);378 this.gbxYAxisClipChangeable.PerformLayout();379 392 this.ResumeLayout(false); 380 393 … … 411 424 private System.Windows.Forms.FlowLayoutPanel flpYAxisClipChangeable; 412 425 private System.Windows.Forms.FlowLayoutPanel flpShowYAxis; 426 private System.Windows.Forms.CheckBox MarkercheckBox; 413 427 } 414 428 } -
trunk/sources/HeuristicLab.Visualization/3.2/Options/OptionsDialog.cs
r1459 r1561 17 17 string Label { get; set; } 18 18 Color Color { get; set; } 19 bool ShowMarkers { get; set; } 19 20 int Thickness { get; set; } 20 21 DrawingStyle Style { get; set; } … … 27 28 Style = row.Style; 28 29 this.row = row; 30 this.ShowMarkers = row.ShowMarkers; 29 31 } 30 32 … … 34 36 row.Thickness = Thickness; 35 37 row.Style = Style; 38 row.ShowMarkers = this.ShowMarkers; 36 39 } 37 40 } … … 83 86 LinestyleCB.SelectedItem = model.Rows[0].Style; 84 87 LineThicknessCB.SelectedItem = model.Rows[0].Thickness; 88 MarkercheckBox.Checked = model.Rows[0].ShowMarkers; 85 89 86 90 LineSelectCB.DataSource = model.Rows; … … 128 132 LineThicknessCB.SelectedItem = ((IDataRow) LineSelectCB.SelectedValue).Thickness; 129 133 LinestyleCB.SelectedItem = ((IDataRow)LineSelectCB.SelectedValue).Style; 130 ColorPreviewTB.BackColor = ((IDataRow)LineSelectCB.SelectedValue).Color; 134 ColorPreviewTB.BackColor = ((IDataRow)LineSelectCB.SelectedValue).Color; 135 MarkercheckBox.Checked = ((IDataRow) LineSelectCB.SelectedValue).ShowMarkers; 131 136 } 132 137 } … … 218 223 ((IDataRow)LineSelectCB.SelectedValue).Thickness = (int)LineThicknessCB.SelectedItem; 219 224 } 225 226 private void MarkercheckBox_CheckedChanged(object sender, EventArgs e) { 227 if (LineSelectCB.SelectedValue != null) 228 ((IDataRow) LineSelectCB.SelectedValue).ShowMarkers = MarkercheckBox.Checked; 229 } 230 231 220 232 } 221 233 }
Note: See TracChangeset
for help on using the changeset viewer.