Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/04/15 13:50:43 (8 years ago)
Author:
jkarder
Message:

#1265: worked on visualization

  • removed BackgroundColor and PictureBox from ChartControl
  • updated chart modes
File:
1 edited

Legend:

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

    r13106 r13114  
    3737    private bool SuppressRender { get; set; }
    3838
    39     public PictureBox PictureBox { get { return pictureBox; } }
    40 
    41     public Color BackgroundColor {
    42       get { return chart != null ? chart.BackgroundColor : Color.Empty; }
    43       set {
    44         if (chart == null || chart.BackgroundColor == value) return;
    45         chart.BackgroundColor = value;
    46       }
    47     }
    48 
    4939    private IChart chart;
    5040    public IChart Chart {
     
    112102      SuppressRender = false;
    113103      if (Chart != null) GenerateImage();
     104    }
     105
     106    public void RefreshPicture() {
     107      pictureBox.Refresh();
     108    }
     109
     110    public void UpdatePicture() {
     111      pictureBox.Update();
     112    }
     113
     114    public Graphics CreatePictureGraphics() {
     115      return pictureBox.CreateGraphics();
    114116    }
    115117
Note: See TracChangeset for help on using the changeset viewer.