Ignore:
Timestamp:
11/03/15 11:29:00 (7 years ago)
Author:
jkarder
Message:

#1265: worked on visualization

  • added BackgroundColor to IChart
  • added RulerChartMode
  • renamed MoveChartMode to PanChartMode
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/Chart.cs

    r13045 r13105  
    4141    }
    4242
     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
    4353    protected bool SuppressRedraw { get; set; }
    4454
     
    7585      SetPosition(lowerLeft, upperRight);
    7686      mySizeInPixels = new Size((int)Size.Width, (int)Size.Height);
     87      backgroundColor = Color.White;
    7788      Scale = 1.0;
    7889      Group = new Group(this);
     
    228239    public virtual void Render(Graphics graphics, int width, int height) {
    229240      mySizeInPixels = new Size(width, height);
     241      graphics.Clear(backgroundColor);
    230242      Group.PreDraw(graphics);
    231243      Group.Draw(graphics);
Note: See TracChangeset for help on using the changeset viewer.