Changeset 1343 for trunk/sources/HeuristicLab.Visualization/LineChart.cs
- Timestamp:
- 03/13/09 19:18:21 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/LineChart.cs
r1342 r1343 109 109 canvas.AddShape(xAxis); 110 110 111 foreach (RowEntry rowEntry in rowEntries) { 112 canvas.AddShape(rowEntry.YAxis); 111 int yAxesWidth = 0; 112 113 foreach (RowEntry rowEntry in rowEntries) { 114 if (rowEntry.DataRow.ShowYAxis) { 115 canvas.AddShape(rowEntry.YAxis); 116 yAxesWidth += YAxisWidth; 117 } 113 118 } 114 119 … … 120 125 titleShape.X = 10; 121 126 titleShape.Y = canvasUI.Height - 10; 122 123 int yAxesWidth = 0;124 125 foreach (RowEntry rowEntry in rowEntries) {126 if (rowEntry.YAxis.Visible) {127 yAxesWidth += YAxisWidth;128 }129 }130 127 131 128 RectangleD linesAreaBoundingBox = new RectangleD(yAxesWidth, … … 141 138 int yAxisLeft = 0; 142 139 foreach (RowEntry rowEntry in rowEntries) { 143 rowEntry.YAxis.BoundingBox = new RectangleD(yAxisLeft, 144 linesAreaBoundingBox.Y1, 145 yAxisLeft + YAxisWidth, 146 linesAreaBoundingBox.Y2); 147 yAxisLeft += YAxisWidth; 140 if (rowEntry.DataRow.ShowYAxis) { 141 rowEntry.YAxis.BoundingBox = new RectangleD(yAxisLeft, 142 linesAreaBoundingBox.Y1, 143 yAxisLeft + YAxisWidth, 144 linesAreaBoundingBox.Y2); 145 yAxisLeft += YAxisWidth; 146 } 148 147 } 149 148 … … 206 205 207 206 rowEntry.LinesShape.UpdateStyle(row); 207 208 UpdateLayout(); 208 209 209 210 canvasUI.Invalidate();
Note: See TracChangeset
for help on using the changeset viewer.