Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/08/10 03:00:46 (14 years ago)
Author:
swagner
Message:

Worked on population diversity analysis (#1188)

Location:
trunk/sources/HeuristicLab.Analysis.Views/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis.Views/3.3/HeatMapView.Designer.cs

    r4703 r4739  
    4646    private void InitializeComponent() {
    4747      System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
    48       System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend();
    49       System.Windows.Forms.DataVisualization.Charting.Title title1= new System.Windows.Forms.DataVisualization.Charting.Title();
     48      System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title();
    5049      System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HeatMapView));
    5150      this.chart = new HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart();
    52       this.ColorsPictureBox = new System.Windows.Forms.PictureBox();
    53       this.ZeroLabel = new System.Windows.Forms.Label();
    54       this.OneLabel = new System.Windows.Forms.Label();
    55       this.GrayscalesPictureBox = new System.Windows.Forms.PictureBox();
    56       this.grayscaledImagesCheckBox = new System.Windows.Forms.CheckBox();
     51      this.colorsPictureBox = new System.Windows.Forms.PictureBox();
     52      this.minimumLabel = new System.Windows.Forms.Label();
     53      this.maximumLabel = new System.Windows.Forms.Label();
     54      this.grayscalesPictureBox = new System.Windows.Forms.PictureBox();
     55      this.grayscaleCheckBox = new System.Windows.Forms.CheckBox();
    5756      ((System.ComponentModel.ISupportInitialize)(this.chart)).BeginInit();
    58       ((System.ComponentModel.ISupportInitialize)(this.ColorsPictureBox)).BeginInit();
    59       ((System.ComponentModel.ISupportInitialize)(this.GrayscalesPictureBox)).BeginInit();
     57      ((System.ComponentModel.ISupportInitialize)(this.colorsPictureBox)).BeginInit();
     58      ((System.ComponentModel.ISupportInitialize)(this.grayscalesPictureBox)).BeginInit();
    6059      this.SuspendLayout();
    6160      //
     
    6968      chartArea1.AxisX.IntervalAutoMode = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount;
    7069      chartArea1.AxisX.LabelAutoFitStyle = ((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.IncreaseFont | System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont)));
    71       chartArea1.AxisX.Title = "Solution Index";
    72       chartArea1.AxisY.Title = "Solution Index";
     70      chartArea1.AxisX.Title = "Column Index";
     71      chartArea1.AxisY.Title = "Row Index";
    7372      chartArea1.CursorX.IsUserEnabled = true;
    7473      chartArea1.CursorX.IsUserSelectionEnabled = true;
     
    7776      chartArea1.Name = "Default";
    7877      this.chart.ChartAreas.Add(chartArea1);
    79       legend1.Alignment = System.Drawing.StringAlignment.Center;
    80       legend1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Top;
    81       legend1.Name = "Default";
    82       this.chart.Legends.Add(legend1);
    8378      this.chart.Location = new System.Drawing.Point(0, 0);
    8479      this.chart.Name = "chart";
    85       this.chart.Size = new System.Drawing.Size(403, 335);
     80      this.chart.Size = new System.Drawing.Size(406, 463);
    8681      this.chart.TabIndex = 0;
    8782      this.chart.Text = "chart";
    8883      title1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
    8984      title1.Name = "Default";
    90       title1.Text = "Solution Similarities";
     85      title1.Text = "Heat Map";
    9186      this.chart.Titles.Add(title1);
    9287      //
    93       // ColorsPictureBox
     88      // colorsPictureBox
    9489      //
    95       this.ColorsPictureBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     90      this.colorsPictureBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    9691                  | System.Windows.Forms.AnchorStyles.Right)));
    97       this.ColorsPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
    98       this.ColorsPictureBox.Image = ((System.Drawing.Image)(resources.GetObject("ColorsPictureBox.Image")));
    99       this.ColorsPictureBox.Location = new System.Drawing.Point(409, 23);
    100       this.ColorsPictureBox.Name = "ColorsPictureBox";
    101       this.ColorsPictureBox.Size = new System.Drawing.Size(35, 312);
    102       this.ColorsPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
    103       this.ColorsPictureBox.TabIndex = 11;
    104       this.ColorsPictureBox.TabStop = false;
     92      this.colorsPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     93      this.colorsPictureBox.Image = ((System.Drawing.Image)(resources.GetObject("colorsPictureBox.Image")));
     94      this.colorsPictureBox.Location = new System.Drawing.Point(430, 28);
     95      this.colorsPictureBox.Name = "colorsPictureBox";
     96      this.colorsPictureBox.Size = new System.Drawing.Size(35, 393);
     97      this.colorsPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     98      this.colorsPictureBox.TabIndex = 11;
     99      this.colorsPictureBox.TabStop = false;
    105100      //
    106       // ZeroLabel
     101      // minimumLabel
    107102      //
    108       this.ZeroLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    109       this.ZeroLabel.AutoSize = true;
    110       this.ZeroLabel.BackColor = System.Drawing.Color.Transparent;
    111       this.ZeroLabel.Location = new System.Drawing.Point(416, 342);
    112       this.ZeroLabel.Name = "ZeroLabel";
    113       this.ZeroLabel.Size = new System.Drawing.Size(22, 13);
    114       this.ZeroLabel.TabIndex = 14;
    115       this.ZeroLabel.Text = "0.0";
     103      this.minimumLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     104      this.minimumLabel.BackColor = System.Drawing.Color.Transparent;
     105      this.minimumLabel.Location = new System.Drawing.Point(412, 424);
     106      this.minimumLabel.Name = "minimumLabel";
     107      this.minimumLabel.Size = new System.Drawing.Size(73, 19);
     108      this.minimumLabel.TabIndex = 2;
     109      this.minimumLabel.Text = "0.0";
     110      this.minimumLabel.TextAlign = System.Drawing.ContentAlignment.TopCenter;
    116111      //
    117       // OneLabel
     112      // maximumLabel
    118113      //
    119       this.OneLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    120       this.OneLabel.AutoSize = true;
    121       this.OneLabel.BackColor = System.Drawing.Color.Transparent;
    122       this.OneLabel.Location = new System.Drawing.Point(416, 3);
    123       this.OneLabel.Name = "OneLabel";
    124       this.OneLabel.Size = new System.Drawing.Size(22, 13);
    125       this.OneLabel.TabIndex = 13;
    126       this.OneLabel.Text = "1.0";
     114      this.maximumLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     115      this.maximumLabel.BackColor = System.Drawing.Color.Transparent;
     116      this.maximumLabel.Location = new System.Drawing.Point(412, 0);
     117      this.maximumLabel.Name = "maximumLabel";
     118      this.maximumLabel.Size = new System.Drawing.Size(73, 25);
     119      this.maximumLabel.TabIndex = 1;
     120      this.maximumLabel.Text = "1.0";
     121      this.maximumLabel.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
    127122      //
    128       // GrayscalesPictureBox
     123      // grayscalesPictureBox
    129124      //
    130       this.GrayscalesPictureBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     125      this.grayscalesPictureBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    131126                  | System.Windows.Forms.AnchorStyles.Right)));
    132       this.GrayscalesPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
    133       this.GrayscalesPictureBox.Image = ((System.Drawing.Image)(resources.GetObject("GrayscalesPictureBox.Image")));
    134       this.GrayscalesPictureBox.Location = new System.Drawing.Point(409, 23);
    135       this.GrayscalesPictureBox.Name = "GrayscalesPictureBox";
    136       this.GrayscalesPictureBox.Size = new System.Drawing.Size(35, 312);
    137       this.GrayscalesPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
    138       this.GrayscalesPictureBox.TabIndex = 15;
    139       this.GrayscalesPictureBox.TabStop = false;
    140       this.GrayscalesPictureBox.Visible = false;
     127      this.grayscalesPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     128      this.grayscalesPictureBox.Image = ((System.Drawing.Image)(resources.GetObject("grayscalesPictureBox.Image")));
     129      this.grayscalesPictureBox.Location = new System.Drawing.Point(430, 28);
     130      this.grayscalesPictureBox.Name = "grayscalesPictureBox";
     131      this.grayscalesPictureBox.Size = new System.Drawing.Size(35, 393);
     132      this.grayscalesPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     133      this.grayscalesPictureBox.TabIndex = 15;
     134      this.grayscalesPictureBox.TabStop = false;
     135      this.grayscalesPictureBox.Visible = false;
    141136      //
    142       // grayscaledImagesCheckBox
     137      // grayscaleCheckBox
    143138      //
    144       this.grayscaledImagesCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    145       this.grayscaledImagesCheckBox.AutoSize = true;
    146       this.grayscaledImagesCheckBox.Location = new System.Drawing.Point(0, 338);
    147       this.grayscaledImagesCheckBox.Name = "grayscaledImagesCheckBox";
    148       this.grayscaledImagesCheckBox.Size = new System.Drawing.Size(115, 17);
    149       this.grayscaledImagesCheckBox.TabIndex = 16;
    150       this.grayscaledImagesCheckBox.Text = "Grayscaled images";
    151       this.grayscaledImagesCheckBox.UseVisualStyleBackColor = true;
    152       this.grayscaledImagesCheckBox.CheckedChanged += new System.EventHandler(this.grayscaledImagesCheckBox_CheckedChanged);
     139      this.grayscaleCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     140      this.grayscaleCheckBox.AutoSize = true;
     141      this.grayscaleCheckBox.Location = new System.Drawing.Point(412, 446);
     142      this.grayscaleCheckBox.Name = "grayscaleCheckBox";
     143      this.grayscaleCheckBox.Size = new System.Drawing.Size(73, 17);
     144      this.grayscaleCheckBox.TabIndex = 3;
     145      this.grayscaleCheckBox.Text = "Grayscale";
     146      this.grayscaleCheckBox.UseVisualStyleBackColor = true;
     147      this.grayscaleCheckBox.CheckedChanged += new System.EventHandler(this.grayscaledImagesCheckBox_CheckedChanged);
    153148      //
    154       // HeatmapView
     149      // HeatMapView
    155150      //
    156151      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    157152      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    158       this.Controls.Add(this.grayscaledImagesCheckBox);
    159       this.Controls.Add(this.ZeroLabel);
    160       this.Controls.Add(this.OneLabel);
    161       this.Controls.Add(this.ColorsPictureBox);
     153      this.Controls.Add(this.grayscaleCheckBox);
     154      this.Controls.Add(this.minimumLabel);
     155      this.Controls.Add(this.maximumLabel);
     156      this.Controls.Add(this.colorsPictureBox);
    162157      this.Controls.Add(this.chart);
    163       this.Controls.Add(this.GrayscalesPictureBox);
    164       this.Name = "HeatmapView";
    165       this.Size = new System.Drawing.Size(444, 358);
     158      this.Controls.Add(this.grayscalesPictureBox);
     159      this.Name = "HeatMapView";
     160      this.Size = new System.Drawing.Size(485, 463);
    166161      ((System.ComponentModel.ISupportInitialize)(this.chart)).EndInit();
    167       ((System.ComponentModel.ISupportInitialize)(this.ColorsPictureBox)).EndInit();
    168       ((System.ComponentModel.ISupportInitialize)(this.GrayscalesPictureBox)).EndInit();
     162      ((System.ComponentModel.ISupportInitialize)(this.colorsPictureBox)).EndInit();
     163      ((System.ComponentModel.ISupportInitialize)(this.grayscalesPictureBox)).EndInit();
    169164      this.ResumeLayout(false);
    170165      this.PerformLayout();
     
    174169    #endregion
    175170
    176     private HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart chart;
    177     private System.Windows.Forms.PictureBox ColorsPictureBox;
    178     private System.Windows.Forms.Label ZeroLabel;
    179     private System.Windows.Forms.Label OneLabel;
    180     private System.Windows.Forms.PictureBox GrayscalesPictureBox;
    181     private System.Windows.Forms.CheckBox grayscaledImagesCheckBox;
     171    protected HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart chart;
     172    protected System.Windows.Forms.PictureBox colorsPictureBox;
     173    protected System.Windows.Forms.Label minimumLabel;
     174    protected System.Windows.Forms.Label maximumLabel;
     175    protected System.Windows.Forms.PictureBox grayscalesPictureBox;
     176    protected System.Windows.Forms.CheckBox grayscaleCheckBox;
    182177  }
    183178}
  • trunk/sources/HeuristicLab.Analysis.Views/3.3/HeatMapView.cs

    r4703 r4739  
    3131  [Content(typeof(HeatMap), true)]
    3232  public partial class HeatMapView : ItemView {
     33    protected static Color[] colors = new Color[256];
     34    protected static Color[] grayscaleColors = new Color[256];
    3335
    34     private static Color[] Colors;
    35     private static int ColorsCount = 500;
    36     private static Color[] GrayscaleColors = new Color[256];
    37 
    38     #region InitializeColors
     36    #region Initialize Colors
    3937    static HeatMapView() {
    40       int stepWidth = (255 * 6) / ColorsCount;
    41       Color[] colors = new Color[ColorsCount];
     38      int stepWidth = (256 * 4) / colors.Length;
    4239      int currentValue;
    4340      int currentClass;
    44       for (int i = 0; i < ColorsCount; i++) {
    45         currentValue = (i * stepWidth) % 255;
    46         currentClass = (i * stepWidth) / 255;
     41      for (int i = 0; i < colors.Length; i++) {
     42        currentValue = (i * stepWidth) % 256;
     43        currentClass = (i * stepWidth) / 256;
    4744        switch (currentClass) {
    48           case 0: { colors[i] = Color.FromArgb(255, currentValue, 0); break; }
    49           case 1: { colors[i] = Color.FromArgb(255 - currentValue, 255, 0); break; }
    50           case 2: { colors[i] = Color.FromArgb(0, 255, currentValue); break; }
    51           case 3: { colors[i] = Color.FromArgb(0, 255 - currentValue, 255); break; }
    52           case 4: { colors[i] = Color.FromArgb(currentValue, 0, 255); break; }
    53           case 5: { colors[i] = Color.FromArgb(255, 0, 255 - currentValue); break; }
     45          case 0: { colors[i] = Color.FromArgb(0, currentValue, 255); break; }        // blue -> cyan
     46          case 1: { colors[i] = Color.FromArgb(0, 255, 255 - currentValue); break; }  // cyan -> green
     47          case 2: { colors[i] = Color.FromArgb(currentValue, 255, 0); break; }        // green -> yellow
     48          case 3: { colors[i] = Color.FromArgb(255, 255 - currentValue, 0); break; }  // yellow -> red
    5449        }
    5550      }
    56       int n = (int)(ColorsCount * 0.7);
    57       Colors = new Color[n];
    58       for (int i = 0; i < n; i++)
    59         Colors[i] = colors[i];
    6051      for (int i = 0; i < 256; i++)
    61         GrayscaleColors[i] = Color.FromArgb(i, i, i);
     52        grayscaleColors[i] = Color.FromArgb(255 - i, 255 - i, 255 - i);  // white -> black
    6253    }
    6354    #endregion
     
    7364    }
    7465
     66    protected override void DeregisterContentEvents() {
     67      Content.TitleChanged -= new EventHandler(Content_TitleChanged);
     68      Content.MinimumChanged -= new EventHandler(Content_MinimumChanged);
     69      Content.MaximumChanged -= new EventHandler(Content_MaximumChanged);
     70      base.DeregisterContentEvents();
     71    }
     72    protected override void RegisterContentEvents() {
     73      base.RegisterContentEvents();
     74      Content.TitleChanged += new EventHandler(Content_TitleChanged);
     75      Content.MinimumChanged += new EventHandler(Content_MinimumChanged);
     76      Content.MaximumChanged += new EventHandler(Content_MaximumChanged);
     77    }
     78
    7579    protected override void OnContentChanged() {
    7680      base.OnContentChanged();
    7781      if (Content == null) {
    7882        chart.Series.Clear();
     83        chart.Titles[0].Text = "Heat Map";
     84        minimumLabel.Text = "0.0";
     85        maximumLabel.Text = "1.0";
    7986      } else {
    80         UpdateChart();
     87        chart.Titles[0].Text = Content.Title;
     88        minimumLabel.Text = Content.Minimum.ToString();
     89        maximumLabel.Text = Content.Maximum.ToString();
     90        UpdatePoints();
    8191      }
    8292    }
    8393
    84     private void UpdateChart() {
     94    protected override void SetEnabledStateOfControls() {
     95      base.SetEnabledStateOfControls();
     96      chart.Enabled = Content != null;
     97      grayscaleCheckBox.Enabled = Content != null;
     98    }
     99
     100    protected virtual void UpdatePoints() {
    85101      chart.Series.Clear();
    86102      Series series = new Series();
     
    89105      series.YValueType = ChartValueType.Int32;
    90106      series.YAxisType = AxisType.Primary;
    91       for (int i = 0; i < Content.Rows; i++)
    92         for (int j = 0; j < Content.Columns; j++)
    93           series.Points.Add(CreateDataPoint(i, j, Content[i, j]));
     107      for (int i = 1; i < Content.Rows + 1; i++)
     108        for (int j = 1; j < Content.Columns + 1; j++)
     109          series.Points.Add(CreateDataPoint(j, i, Content[i - 1, j - 1]));
     110      chart.ChartAreas[0].AxisX.Minimum = 0;
     111      chart.ChartAreas[0].AxisX.Maximum = Content.Columns + 1;
    94112      chart.ChartAreas[0].AxisY.Minimum = 0;
    95       chart.ChartAreas[0].AxisY.Maximum = Content.Rows;
     113      chart.ChartAreas[0].AxisY.Maximum = Content.Rows + 1;
    96114      chart.Series.Add(series);
    97       chart.Legends.Clear();
    98115    }
    99116
    100     private DataPoint CreateDataPoint(int index1, int index2, double value) {
    101       bool grayScaleModus = grayscaledImagesCheckBox.Checked;
    102       int n = grayScaleModus ? GrayscaleColors.Length : Colors.Length;
    103       int colorIndex = (int)((n - 1) * value);
    104       if (colorIndex >= n) colorIndex = n - 1;
    105       if (colorIndex < 0) colorIndex = 0;
    106       // invert so that red is 1, blue 0 / black is 1, white 0
    107       colorIndex = n - colorIndex - 1;
    108       Color color = grayScaleModus ? GrayscaleColors[colorIndex] : Colors[colorIndex];
    109 
     117    protected virtual DataPoint CreateDataPoint(int index1, int index2, double value) {
    110118      DataPoint p = new DataPoint(index1, index2);
    111       p.Color = color;
     119      p.Color = GetDataPointColor(value, Content.Minimum, Content.Maximum, grayscaleCheckBox.Checked);
    112120      p.MarkerStyle = MarkerStyle.Square;
    113       p.ToolTip = string.Format("Solution {0} vs. solution {1}: {2}",
    114                                 index1, index2, value);
     121      //p.MarkerSize = 10;
     122      //string nl = Environment.NewLine;
     123      //p.ToolTip = string.Format("Row: {0}{3}Column: {1}{3}Value: {2}", index2, index1, value, nl);
    115124      return p;
    116125    }
    117126
    118     #region Chart Events
    119 
    120     private void grayscaledImagesCheckBox_CheckedChanged(object sender, EventArgs e) {
    121       GrayscalesPictureBox.Visible = grayscaledImagesCheckBox.Checked;
    122       ColorsPictureBox.Visible = !grayscaledImagesCheckBox.Checked;
    123       UpdateChart();
     127    protected virtual Color GetDataPointColor(double value, double min, double max, bool grayscale) {
     128      int count = grayscale ? grayscaleColors.Length : colors.Length;
     129      int index = (int)((count - 1) * (value - min) / (max - min));
     130      if (index >= count) index = count - 1;
     131      if (index < 0) index = 0;
     132      return grayscale ? grayscaleColors[index] : colors[index];
    124133    }
    125134
     135    #region Content Events
     136    protected virtual void Content_TitleChanged(object sender, EventArgs e) {
     137      if (InvokeRequired)
     138        Invoke(new EventHandler(Content_TitleChanged), sender, e);
     139      else {
     140        chart.Titles[0].Text = Content.Title;
     141      }
     142    }
     143    protected virtual void Content_MinimumChanged(object sender, EventArgs e) {
     144      if (InvokeRequired)
     145        Invoke(new EventHandler(Content_MinimumChanged), sender, e);
     146      else {
     147        minimumLabel.Text = Content.Minimum.ToString();
     148        UpdatePoints();
     149      }
     150    }
     151    protected virtual void Content_MaximumChanged(object sender, EventArgs e) {
     152      if (InvokeRequired)
     153        Invoke(new EventHandler(Content_MaximumChanged), sender, e);
     154      else {
     155        maximumLabel.Text = Content.Maximum.ToString();
     156        UpdatePoints();
     157      }
     158    }
    126159    #endregion
    127160
     161    #region Control Events
     162    protected virtual void grayscaledImagesCheckBox_CheckedChanged(object sender, EventArgs e) {
     163      grayscalesPictureBox.Visible = grayscaleCheckBox.Checked;
     164      colorsPictureBox.Visible = !grayscaleCheckBox.Checked;
     165      UpdatePoints();
     166    }
     167    #endregion
    128168  }
    129 
    130169}
  • trunk/sources/HeuristicLab.Analysis.Views/3.3/HeatMapView.resx

    r4703 r4739  
    119119  </resheader>
    120120  <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    121   <data name="ColorsPictureBox.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     121  <data name="colorsPictureBox.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
    122122    <value>
    123123        Qk0S0gAAAAAAADYAAAAoAAAAMQAAAGsBAAABABgAAAAAAAAAAADEDgAAxA4AAAAAAAAAAAAA/wAe/wAe
     
    10201020</value>
    10211021  </data>
    1022   <data name="GrayscalesPictureBox.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     1022  <data name="grayscalesPictureBox.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
    10231023    <value>
    10241024        Qk0S0gAAAAAAADYAAAAoAAAAMQAAAGsBAAABABgAAAAAAAAAAADEDgAAxA4AAAAAAAAAAAAA////////
Note: See TracChangeset for help on using the changeset viewer.