Changeset 1879 for trunk/sources
- Timestamp:
- 05/23/09 08:59:08 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/3.2/LineChart.cs
r1878 r1879 56 56 Item = model; 57 57 58 this.ResizeRedraw = true; 59 58 60 UpdateLayout(); 59 canvasUI.Resize += delegate { UpdateLayout(); };60 61 61 ZoomToFullView(); 62 62 } … … 78 78 SetLegendPosition(); 79 79 80 canvasUI.Invalidate();80 this.Invalidate(true); 81 81 } 82 82 … … 246 246 legendShape.CreateLegend(); 247 247 248 canvasUI.Invalidate();248 this.Invalidate(true); 249 249 } 250 250 … … 287 287 rowEntry.LinesShape.UpdateStyle(row); 288 288 289 UpdateLayout(); 290 291 canvasUI.Invalidate(); 289 this.Invalidate(true); 292 290 } 293 291 … … 324 322 InitLineShapes(row); 325 323 326 UpdateLayout();324 this.Invalidate(true); 327 325 } 328 326 … … 335 333 rowEntries.RemoveAll(delegate(RowEntry rowEntry) { return rowEntry.DataRow == row; }); 336 334 337 UpdateLayout();335 this.Invalidate(true); 338 336 } 339 337 … … 351 349 } 352 350 353 canvasUI.Invalidate();351 this.Invalidate(true); 354 352 } 355 353 … … 486 484 487 485 private void OnModelChanged() { 488 UpdateLayout(); 489 canvasUI.Invalidate(); 486 this.Invalidate(true); 490 487 } 491 488 … … 506 503 507 504 if (beginUpdateCount == 0) { 508 canvasUI.Invalidate();505 this.Invalidate(true); 509 506 } 510 507 } … … 526 523 } 527 524 528 canvasUI.Invalidate();525 this.Invalidate(true); 529 526 } 530 527 … … 547 544 548 545 userInteractionShape.RemoveShape(rectangleShape); 549 canvasUI.Invalidate();546 this.Invalidate(true); 550 547 } 551 548 552 549 private void DrawRectangle(Rectangle rectangle) { 553 550 rectangleShape.Rectangle = Transform.ToWorld(rectangle, userInteractionShape.Viewport, userInteractionShape.ClippingArea); 554 canvasUI.Invalidate();551 this.Invalidate(true); 555 552 } 556 553 … … 618 615 } 619 616 620 canvasUI.Invalidate();617 this.Invalidate(true); 621 618 } 622 619 } 623 620 624 621 #endregion 622 623 protected override void OnPaint(PaintEventArgs e) { 624 UpdateLayout(); 625 base.OnPaint(e); 626 } 625 627 626 628 private class LinesShape : WorldShape {
Note: See TracChangeset
for help on using the changeset viewer.