Changeset 1390 for trunk/sources
- Timestamp:
- 03/21/09 13:43:10 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization.Test/LineChartTests.cs
r1387 r1390 100 100 row3.Label = "Die Blaue"; 101 101 row3.YAxis = yaxis2; 102 row3.YAxis.Label = "Die Blaue"; 102 103 103 104 model.AddDataRow(row1); 104 105 model.AddDataRow(row2); 105 106 model.AddDataRow(row3); 107 108 row1.YAxis.Label = "Rot und Grün"; 106 109 107 110 Random rand = new Random(42); -
trunk/sources/HeuristicLab.Visualization/LineChart.cs
r1388 r1390 443 443 444 444 foreach (RowEntry rowEntry in rowEntries) { 445 clippingArea = Translate.ClippingArea(startPoint, endPoint, rowEntry.LinesShape.ClippingArea, rowEntry.LinesShape.Viewport); 446 SetClipY(rowEntry, clippingArea.Y1, clippingArea.Y2); 445 if (rowEntry.DataRow.YAxis.ClipChangeable) { 446 clippingArea = Translate.ClippingArea(startPoint, endPoint, rowEntry.LinesShape.ClippingArea, rowEntry.LinesShape.Viewport); 447 SetClipY(rowEntry, clippingArea.Y1, clippingArea.Y2); 448 } 447 449 } 448 450 … … 460 462 461 463 foreach (RowEntry rowEntry in rowEntries) { 462 clippingArea = Transform.ToWorld(rectangle, rowEntry.LinesShape.Viewport, rowEntry.LinesShape.ClippingArea); 463 464 SetClipY(rowEntry, clippingArea.Y1, clippingArea.Y2); 464 if (rowEntry.DataRow.YAxis.ClipChangeable) { 465 clippingArea = Transform.ToWorld(rectangle, rowEntry.LinesShape.Viewport, rowEntry.LinesShape.ClippingArea); 466 467 SetClipY(rowEntry, clippingArea.Y1, clippingArea.Y2); 468 } 465 469 } 466 470 -
trunk/sources/HeuristicLab.Visualization/Options/OptionsDialog.cs
r1389 r1390 106 106 dataRowsFlowLayout.Controls.Add(chkbox); 107 107 } 108 109 for (int i = 0; i < model.YAxes.Count; i++) { 110 YAxisDescriptor yAxisDescriptor = model.YAxes[i]; 111 112 CheckBox chkbox = new CheckBox(); 113 chkbox.Text = yAxisDescriptor.Label; 114 chkbox.Checked = yAxisDescriptor.ClipChangeable; 115 chkbox.CheckedChanged += delegate { yAxisDescriptor.ClipChangeable = chkbox.Checked; }; 116 117 dataRowsFlowLayout.Controls.Add(chkbox); 118 } 108 119 } 109 120 -
trunk/sources/HeuristicLab.Visualization/YAxisDescriptor.cs
r1350 r1390 11 11 private bool showYAxis = true; 12 12 private string label = ""; 13 public bool ClipChangeable = true; 13 14 14 15 public event YAxisDescriptorChangedHandler YAxisDescriptorChanged; … … 72 73 } 73 74 75 public bool Zoom_ { 76 get { return ClipChangeable; } 77 set { ClipChangeable = value; } 78 } 79 74 80 public void AddDataRow(IDataRow row) { 75 81 if (row.YAxis != null) {
Note: See TracChangeset
for help on using the changeset viewer.