Changeset 1974 for trunk/sources
- Timestamp:
- 05/30/09 12:31:03 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/3.2/LineChart.cs
r1965 r1974 303 303 int ix = (int) Math.Round(dx); 304 304 foreach (var rowEntry in rowEntries) { 305 if ((rowEntry.DataRow.Count > ix) && (ix > 0) && ((rowEntry.DataRow. LineType == DataRowType.Normal)||(rowEntry.DataRow.LineType==DataRowType.Points))) {305 if ((rowEntry.DataRow.Count > ix) && (ix > 0) && ((rowEntry.DataRow.RowSettings.LineType == DataRowType.Normal) || (rowEntry.DataRow.RowSettings.LineType == DataRowType.Points))) { 306 306 Point screenDataP = Transform.ToScreen(new PointD(ix, rowEntry.DataRow[ix]), rowEntry.LinesShape.Viewport, 307 307 rowEntry.LinesShape.ClippingArea); … … 465 465 rowToRowEntry[row] = rowEntry; 466 466 467 if ((row. LineType == DataRowType.SingleValue)) {467 if ((row.RowSettings.LineType == DataRowType.SingleValue)) { 468 468 if (row.Count > 0) { 469 469 LineShape lineShape = new HorizontalLineShape(0, row[0], double.MaxValue, row[0], row.RowSettings.Color, row.RowSettings.Thickness, 470 row. Style);470 row.RowSettings.Style); 471 471 rowEntry.LinesShape.AddShape(lineShape); 472 472 } 473 } else if (row. LineType == DataRowType.Points) {473 } else if (row.RowSettings.LineType == DataRowType.Points) { 474 474 rowEntry.ShowMarkers(true); //no lines, only markers are shown!! 475 475 for (int i = 0; i < row.Count; i++) 476 476 rowEntry.LinesShape.AddMarkerShape(new MarkerShape(i, row[i], 8, row.RowSettings.Color)); 477 } else if (row. LineType == DataRowType.Normal) {478 rowEntry.ShowMarkers(row. ShowMarkers);477 } else if (row.RowSettings.LineType == DataRowType.Normal) { 478 rowEntry.ShowMarkers(row.RowSettings.ShowMarkers); 479 479 for (int i = 1; i < row.Count; i++) { 480 LineShape lineShape = new LineShape(i - 1, row[i - 1], i, row[i], row.RowSettings.Color, row.RowSettings.Thickness, row. Style);480 LineShape lineShape = new LineShape(i - 1, row[i - 1], i, row[i], row.RowSettings.Color, row.RowSettings.Thickness, row.RowSettings.Style); 481 481 rowEntry.LinesShape.AddShape(lineShape); 482 482 rowEntry.LinesShape.AddMarkerShape(new MarkerShape(i - 1, row[i - 1], 8, row.RowSettings.Color)); … … 500 500 RowEntry rowEntry = rowToRowEntry[row]; 501 501 502 if (row. LineType == DataRowType.SingleValue) {502 if (row.RowSettings.LineType == DataRowType.SingleValue) { 503 503 if (action == Action.Added) { 504 504 LineShape lineShape = new HorizontalLineShape(0, row[0], double.MaxValue, row[0], row.RowSettings.Color, row.RowSettings.Thickness, 505 row. Style);505 row.RowSettings.Style); 506 506 rowEntry.LinesShape.AddShape(lineShape); 507 507 } else if(action==Action.Deleted) { … … 512 512 lineShape.Y2 = value; 513 513 } 514 } else if (row. LineType == DataRowType.Points) {514 } else if (row.RowSettings.LineType == DataRowType.Points) { 515 515 if (action == Action.Added) { 516 516 if(rowEntry.LinesShape.Count==0) … … 518 518 if (index > 0 && index == rowEntry.LinesShape.Count + 1) { 519 519 LineShape lineShape = new LineShape(index - 1, row[index - 1], index, row[index], row.RowSettings.Color, row.RowSettings.Thickness, 520 row. Style);520 row.RowSettings.Style); 521 521 rowEntry.LinesShape.AddShape(lineShape); 522 522 rowEntry.LinesShape.AddMarkerShape(new MarkerShape(index, row[index], 8, row.RowSettings.Color)); … … 542 542 throw new NotSupportedException("Deleting of values other than the last one is not supported!"); 543 543 } 544 545 } else if (row. LineType == DataRowType.Normal) {544 545 } else if (row.RowSettings.LineType == DataRowType.Normal) { 546 546 if (index > rowEntry.LinesShape.Count + 1) { 547 547 throw new NotImplementedException(); … … 553 553 if (index > 0 && index == rowEntry.LinesShape.Count + 1) { 554 554 LineShape lineShape = new LineShape(index - 1, row[index - 1], index, row[index], row.RowSettings.Color, row.RowSettings.Thickness, 555 row. Style);555 row.RowSettings.Style); 556 556 rowEntry.LinesShape.AddShape(lineShape); 557 557 rowEntry.LinesShape.AddMarkerShape(new MarkerShape(index, row[index], 8, row.RowSettings.Color)); … … 746 746 if (lineShape != null) { 747 747 lineShape.LSColor = row.RowSettings.Color; 748 lineShape.LSDrawingStyle = row. Style;748 lineShape.LSDrawingStyle = row.RowSettings.Style; 749 749 lineShape.LSThickness = row.RowSettings.Thickness; 750 750 } 751 751 } 752 markersShape.ShowChildShapes = row. ShowMarkers;752 markersShape.ShowChildShapes = row.RowSettings.ShowMarkers; 753 753 } 754 754
Note: See TracChangeset
for help on using the changeset viewer.