- Timestamp:
- 11/03/15 11:29:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/Chart.cs
r13045 r13105 41 41 } 42 42 43 private Color backgroundColor; 44 public Color BackgroundColor { 45 get { return backgroundColor; } 46 set { 47 if (backgroundColor == value) return; 48 backgroundColor = value; 49 OnRedrawRequired(); 50 } 51 } 52 43 53 protected bool SuppressRedraw { get; set; } 44 54 … … 75 85 SetPosition(lowerLeft, upperRight); 76 86 mySizeInPixels = new Size((int)Size.Width, (int)Size.Height); 87 backgroundColor = Color.White; 77 88 Scale = 1.0; 78 89 Group = new Group(this); … … 228 239 public virtual void Render(Graphics graphics, int width, int height) { 229 240 mySizeInPixels = new Size(width, height); 241 graphics.Clear(backgroundColor); 230 242 Group.PreDraw(graphics); 231 243 Group.Draw(graphics);
Note: See TracChangeset
for help on using the changeset viewer.