Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/24/17 09:51:10 (7 years ago)
Author:
abeham
Message:

#2457: merged trunk into branch

Location:
branches/PerformanceComparison/HeuristicLab.Analysis.Views
Files:
4 deleted
10 edited
6 copied

Legend:

Unmodified
Added
Removed
  • branches/PerformanceComparison/HeuristicLab.Analysis.Views

  • branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/DataRowVisualPropertiesControl.Designer.cs

    r14600 r15282  
    4949      this.colorButton = new System.Windows.Forms.Button();
    5050      this.startIndexZeroCheckBox = new System.Windows.Forms.CheckBox();
    51       this.binsNumericUpDown = new System.Windows.Forms.NumericUpDown();
    5251      this.label1 = new System.Windows.Forms.Label();
    5352      this.label2 = new System.Windows.Forms.Label();
    54       this.label3 = new System.Windows.Forms.Label();
    5553      this.commonGroupBox = new System.Windows.Forms.GroupBox();
    5654      this.clearColorButton = new System.Windows.Forms.Button();
     
    6866      this.label6 = new System.Windows.Forms.Label();
    6967      this.label9 = new System.Windows.Forms.Label();
    70       this.histoGramGroupBox = new System.Windows.Forms.GroupBox();
    71       this.binsExactRadioButton = new System.Windows.Forms.RadioButton();
    72       this.binsApproximatelyRadioButton = new System.Windows.Forms.RadioButton();
    73       this.label11 = new System.Windows.Forms.Label();
    74       this.aggregationComboBox = new System.Windows.Forms.ComboBox();
    7568      this.lineChartGroupBox = new System.Windows.Forms.GroupBox();
    7669      this.lineWidthNumericUpDown = new System.Windows.Forms.NumericUpDown();
     
    7972      this.lineStyleComboBox = new System.Windows.Forms.ComboBox();
    8073      this.label8 = new System.Windows.Forms.Label();
    81       ((System.ComponentModel.ISupportInitialize)(this.binsNumericUpDown)).BeginInit();
    8274      this.commonGroupBox.SuspendLayout();
    8375      this.axisGroupBox.SuspendLayout();
    8476      this.panel2.SuspendLayout();
    8577      this.panel1.SuspendLayout();
    86       this.histoGramGroupBox.SuspendLayout();
    8778      this.lineChartGroupBox.SuspendLayout();
    8879      ((System.ComponentModel.ISupportInitialize)(this.lineWidthNumericUpDown)).BeginInit();
     
    9182      // chartTypeComboBox
    9283      //
    93       this.chartTypeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     84      this.chartTypeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
    9485            | System.Windows.Forms.AnchorStyles.Right)));
    9586      this.chartTypeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     
    126117      this.startIndexZeroCheckBox.CheckedChanged += new System.EventHandler(this.startIndexZeroCheckBox_CheckedChanged);
    127118      //
    128       // binsNumericUpDown
    129       //
    130       this.binsNumericUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    131             | System.Windows.Forms.AnchorStyles.Right)));
    132       this.binsNumericUpDown.Location = new System.Drawing.Point(82, 19);
    133       this.binsNumericUpDown.Minimum = new decimal(new int[] {
    134             1,
    135             0,
    136             0,
    137             0});
    138       this.binsNumericUpDown.Name = "binsNumericUpDown";
    139       this.binsNumericUpDown.Size = new System.Drawing.Size(72, 20);
    140       this.binsNumericUpDown.TabIndex = 1;
    141       this.binsNumericUpDown.Value = new decimal(new int[] {
    142             1,
    143             0,
    144             0,
    145             0});
    146       this.binsNumericUpDown.ValueChanged += new System.EventHandler(this.binsNumericUpDown_ValueChanged);
    147       //
    148119      // label1
    149120      //
     
    164135      this.label2.Text = "&Color:";
    165136      //
    166       // label3
    167       //
    168       this.label3.AutoSize = true;
    169       this.label3.Location = new System.Drawing.Point(6, 21);
    170       this.label3.Name = "label3";
    171       this.label3.Size = new System.Drawing.Size(30, 13);
    172       this.label3.TabIndex = 0;
    173       this.label3.Text = "&Bins:";
    174       //
    175137      // commonGroupBox
    176138      //
    177       this.commonGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     139      this.commonGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
    178140            | System.Windows.Forms.AnchorStyles.Right)));
    179141      this.commonGroupBox.Controls.Add(this.clearColorButton);
     
    232194      // displayNameTextBox
    233195      //
    234       this.displayNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     196      this.displayNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
    235197            | System.Windows.Forms.AnchorStyles.Right)));
    236198      this.displayNameTextBox.Location = new System.Drawing.Point(102, 19);
     
    242204      // axisGroupBox
    243205      //
    244       this.axisGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    245             | System.Windows.Forms.AnchorStyles.Left)
     206      this.axisGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
     207            | System.Windows.Forms.AnchorStyles.Left) 
    246208            | System.Windows.Forms.AnchorStyles.Right)));
    247209      this.axisGroupBox.Controls.Add(this.panel2);
     
    258220      // panel2
    259221      //
    260       this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     222      this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
    261223            | System.Windows.Forms.AnchorStyles.Right)));
    262224      this.panel2.Controls.Add(this.yAxisSecondaryRadioButton);
     
    293255      // panel1
    294256      //
    295       this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     257      this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
    296258            | System.Windows.Forms.AnchorStyles.Right)));
    297259      this.panel1.Controls.Add(this.xAxisPrimaryRadioButton);
     
    353315      this.label9.Text = "&Name:";
    354316      //
    355       // histoGramGroupBox
    356       //
    357       this.histoGramGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    358             | System.Windows.Forms.AnchorStyles.Right)));
    359       this.histoGramGroupBox.Controls.Add(this.binsExactRadioButton);
    360       this.histoGramGroupBox.Controls.Add(this.binsApproximatelyRadioButton);
    361       this.histoGramGroupBox.Controls.Add(this.binsNumericUpDown);
    362       this.histoGramGroupBox.Controls.Add(this.label11);
    363       this.histoGramGroupBox.Controls.Add(this.label3);
    364       this.histoGramGroupBox.Controls.Add(this.aggregationComboBox);
    365       this.histoGramGroupBox.Location = new System.Drawing.Point(0, 305);
    366       this.histoGramGroupBox.Name = "histoGramGroupBox";
    367       this.histoGramGroupBox.Size = new System.Drawing.Size(327, 75);
    368       this.histoGramGroupBox.TabIndex = 2;
    369       this.histoGramGroupBox.TabStop = false;
    370       this.histoGramGroupBox.Text = "Histogram Properties";
    371       //
    372       // binsExactRadioButton
    373       //
    374       this.binsExactRadioButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    375       this.binsExactRadioButton.AutoSize = true;
    376       this.binsExactRadioButton.Location = new System.Drawing.Point(269, 19);
    377       this.binsExactRadioButton.Name = "binsExactRadioButton";
    378       this.binsExactRadioButton.Size = new System.Drawing.Size(52, 17);
    379       this.binsExactRadioButton.TabIndex = 3;
    380       this.binsExactRadioButton.TabStop = true;
    381       this.binsExactRadioButton.Text = "&Exact";
    382       this.binsExactRadioButton.UseVisualStyleBackColor = true;
    383       this.binsExactRadioButton.CheckedChanged += new System.EventHandler(this.binNumberRadioButton_CheckedChanged);
    384       //
    385       // binsApproximatelyRadioButton
    386       //
    387       this.binsApproximatelyRadioButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    388       this.binsApproximatelyRadioButton.AutoSize = true;
    389       this.binsApproximatelyRadioButton.Location = new System.Drawing.Point(173, 19);
    390       this.binsApproximatelyRadioButton.Name = "binsApproximatelyRadioButton";
    391       this.binsApproximatelyRadioButton.Size = new System.Drawing.Size(90, 17);
    392       this.binsApproximatelyRadioButton.TabIndex = 2;
    393       this.binsApproximatelyRadioButton.TabStop = true;
    394       this.binsApproximatelyRadioButton.Text = "&Approximately";
    395       this.binsApproximatelyRadioButton.UseVisualStyleBackColor = true;
    396       this.binsApproximatelyRadioButton.CheckedChanged += new System.EventHandler(this.binNumberRadioButton_CheckedChanged);
    397       //
    398       // label11
    399       //
    400       this.label11.AutoSize = true;
    401       this.label11.Location = new System.Drawing.Point(6, 49);
    402       this.label11.Name = "label11";
    403       this.label11.Size = new System.Drawing.Size(67, 13);
    404       this.label11.TabIndex = 0;
    405       this.label11.Text = "Aggregation:";
    406       //
    407       // aggregationComboBox
    408       //
    409       this.aggregationComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    410             | System.Windows.Forms.AnchorStyles.Right)));
    411       this.aggregationComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
    412       this.aggregationComboBox.FormattingEnabled = true;
    413       this.aggregationComboBox.Location = new System.Drawing.Point(82, 45);
    414       this.aggregationComboBox.Name = "aggregationComboBox";
    415       this.aggregationComboBox.Size = new System.Drawing.Size(239, 21);
    416       this.aggregationComboBox.TabIndex = 3;
    417       this.aggregationComboBox.SelectedValueChanged += new System.EventHandler(this.aggregationComboBox_SelectedValueChanged);
    418       //
    419317      // lineChartGroupBox
    420318      //
    421       this.lineChartGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     319      this.lineChartGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
    422320            | System.Windows.Forms.AnchorStyles.Right)));
    423321      this.lineChartGroupBox.Controls.Add(this.lineWidthNumericUpDown);
     
    436334      // lineWidthNumericUpDown
    437335      //
    438       this.lineWidthNumericUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     336      this.lineWidthNumericUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
    439337            | System.Windows.Forms.AnchorStyles.Right)));
    440338      this.lineWidthNumericUpDown.Location = new System.Drawing.Point(82, 66);
     
    474372      // lineStyleComboBox
    475373      //
    476       this.lineStyleComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     374      this.lineStyleComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
    477375            | System.Windows.Forms.AnchorStyles.Right)));
    478376      this.lineStyleComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     
    497395      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
    498396      this.Controls.Add(this.lineChartGroupBox);
    499       this.Controls.Add(this.histoGramGroupBox);
    500397      this.Controls.Add(this.commonGroupBox);
    501398      this.Name = "DataRowVisualPropertiesControl";
    502       this.Size = new System.Drawing.Size(327, 382);
    503       ((System.ComponentModel.ISupportInitialize)(this.binsNumericUpDown)).EndInit();
     399      this.Size = new System.Drawing.Size(327, 300);
    504400      this.commonGroupBox.ResumeLayout(false);
    505401      this.commonGroupBox.PerformLayout();
     
    510406      this.panel1.ResumeLayout(false);
    511407      this.panel1.PerformLayout();
    512       this.histoGramGroupBox.ResumeLayout(false);
    513       this.histoGramGroupBox.PerformLayout();
    514408      this.lineChartGroupBox.ResumeLayout(false);
    515409      this.lineChartGroupBox.PerformLayout();
     
    525419    private System.Windows.Forms.Button colorButton;
    526420    private System.Windows.Forms.CheckBox startIndexZeroCheckBox;
    527     private System.Windows.Forms.NumericUpDown binsNumericUpDown;
    528421    private System.Windows.Forms.Label label1;
    529422    private System.Windows.Forms.Label label2;
    530     private System.Windows.Forms.Label label3;
    531423    private System.Windows.Forms.GroupBox commonGroupBox;
    532     private System.Windows.Forms.GroupBox histoGramGroupBox;
    533424    private System.Windows.Forms.RadioButton xAxisSecondaryRadioButton;
    534425    private System.Windows.Forms.RadioButton yAxisSecondaryRadioButton;
     
    540431    private System.Windows.Forms.Label label4;
    541432    private System.Windows.Forms.Label label7;
    542     private System.Windows.Forms.RadioButton binsExactRadioButton;
    543     private System.Windows.Forms.RadioButton binsApproximatelyRadioButton;
    544433    private System.Windows.Forms.ComboBox lineStyleComboBox;
    545434    private System.Windows.Forms.Label label8;
     
    552441    private System.Windows.Forms.Label label10;
    553442    private System.Windows.Forms.CheckBox isVisibleInLegendCheckBox;
    554     private System.Windows.Forms.Label label11;
    555     private System.Windows.Forms.ComboBox aggregationComboBox;
    556443    private System.Windows.Forms.Button clearColorButton;
    557444  }
  • branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/DataRowVisualPropertiesControl.cs

    r14600 r15282  
    4646      chartTypeComboBox.DataSource = Enum.GetValues(typeof(DataRowVisualProperties.DataRowChartType));
    4747      lineStyleComboBox.DataSource = Enum.GetValues(typeof(DataRowVisualProperties.DataRowLineStyle));
    48       aggregationComboBox.DataSource = Enum.GetValues(typeof(DataRowVisualProperties.DataRowHistogramAggregation));
    4948      clearColorButton.BackColor = Color.Transparent;
    5049      clearColorButton.BackgroundImage = VSImageLibrary.Delete;
     
    6665          startIndexZeroCheckBox.Checked = false;
    6766          lineWidthNumericUpDown.Value = 1;
    68           binsNumericUpDown.Value = 1;
    69           binsApproximatelyRadioButton.Checked = false;
    70           binsExactRadioButton.Checked = false;
    71           aggregationComboBox.SelectedIndex = -1;
    7267          displayNameTextBox.Text = String.Empty;
    7368        } else {
     
    9186            lineWidthNumericUpDown.Value = lineWidthNumericUpDown.Maximum;
    9287          else lineWidthNumericUpDown.Value = Content.LineWidth;
    93           if (Content.Bins < binsNumericUpDown.Minimum)
    94             binsNumericUpDown.Value = binsNumericUpDown.Minimum;
    95           else if (Content.Bins > binsNumericUpDown.Maximum)
    96             binsNumericUpDown.Value = binsNumericUpDown.Maximum;
    97           else binsNumericUpDown.Value = Content.Bins;
    98           binsApproximatelyRadioButton.Checked = !Content.ExactBins;
    99           binsExactRadioButton.Checked = Content.ExactBins;
    100           aggregationComboBox.SelectedItem = Content.Aggregation;
    10188          displayNameTextBox.Text = Content.DisplayName;
    10289          isVisibleInLegendCheckBox.Checked = Content.IsVisibleInLegend;
     
    11097      clearColorButton.Visible = Content != null && !Content.Color.IsEmpty;
    11198      lineChartGroupBox.Enabled = Content != null && Content.ChartType == DataRowVisualProperties.DataRowChartType.Line;
    112       histoGramGroupBox.Enabled = Content != null && Content.ChartType == DataRowVisualProperties.DataRowChartType.Histogram;
    11399      isVisibleInLegendCheckBox.Enabled = Content != null;
    114100    }
     
    187173    }
    188174
    189     private void binsNumericUpDown_ValueChanged(object sender, EventArgs e) {
    190       if (!SuppressEvents && Content != null) {
    191         Content.Bins = (int)binsNumericUpDown.Value;
    192       }
    193     }
    194 
    195     private void binNumberRadioButton_CheckedChanged(object sender, EventArgs e) {
    196       if (!SuppressEvents && Content != null) {
    197         SuppressEvents = true;
    198         try {
    199           Content.ExactBins = binsExactRadioButton.Checked;
    200         } finally { SuppressEvents = false; }
    201       }
    202     }
    203 
    204     private void aggregationComboBox_SelectedValueChanged(object sender, EventArgs e) {
    205       if (!SuppressEvents && Content != null) {
    206         SuppressEvents = true;
    207         try {
    208           Content.Aggregation = (DataRowVisualProperties.DataRowHistogramAggregation)aggregationComboBox.SelectedValue;
    209         } finally { SuppressEvents = false; }
    210       }
    211     }
    212 
    213175    private void displayNameTextBox_Validated(object sender, EventArgs e) {
    214176      if (!SuppressEvents && Content != null) {
  • branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/DataTableVisualPropertiesControl.Designer.cs

    r14600 r15282  
    105105      this.label7 = new System.Windows.Forms.Label();
    106106      this.label8 = new System.Windows.Forms.Label();
     107      this.histogramTabPage = new System.Windows.Forms.TabPage();
     108      this.histogramGroupBox = new System.Windows.Forms.GroupBox();
     109      this.histogramBinsExactRadioButton = new System.Windows.Forms.RadioButton();
     110      this.histogramBinsApproximatelyRadioButton = new System.Windows.Forms.RadioButton();
     111      this.histogramBinsNumericUpDown = new System.Windows.Forms.NumericUpDown();
     112      this.label16 = new System.Windows.Forms.Label();
     113      this.label17 = new System.Windows.Forms.Label();
     114      this.histogramAggregationComboBox = new System.Windows.Forms.ComboBox();
    107115      this.titleTextBox = new System.Windows.Forms.TextBox();
    108116      this.label15 = new System.Windows.Forms.Label();
     
    131139      this.panel6.SuspendLayout();
    132140      this.panel5.SuspendLayout();
     141      this.histogramTabPage.SuspendLayout();
     142      this.histogramGroupBox.SuspendLayout();
     143      ((System.ComponentModel.ISupportInitialize)(this.histogramBinsNumericUpDown)).BeginInit();
    133144      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    134145      this.SuspendLayout();
     
    489500      this.axisTabControl.Controls.Add(this.xAxisTabPage);
    490501      this.axisTabControl.Controls.Add(this.yAxisTabPage);
     502      this.axisTabControl.Controls.Add(this.histogramTabPage);
    491503      this.axisTabControl.Location = new System.Drawing.Point(0, 84);
    492504      this.axisTabControl.Name = "axisTabControl";
     
    791803      this.label8.TabIndex = 2;
    792804      this.label8.Text = "&Minimum:";
     805      //
     806      // histogramTabPage
     807      //
     808      this.histogramTabPage.Controls.Add(this.histogramGroupBox);
     809      this.histogramTabPage.Location = new System.Drawing.Point(4, 22);
     810      this.histogramTabPage.Name = "histogramTabPage";
     811      this.histogramTabPage.Padding = new System.Windows.Forms.Padding(3);
     812      this.histogramTabPage.Size = new System.Drawing.Size(447, 263);
     813      this.histogramTabPage.TabIndex = 2;
     814      this.histogramTabPage.Text = "Histogram";
     815      this.histogramTabPage.UseVisualStyleBackColor = true;
     816      //
     817      // histogramGroupBox
     818      //
     819      this.histogramGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     820            | System.Windows.Forms.AnchorStyles.Right)));
     821      this.histogramGroupBox.Controls.Add(this.histogramBinsExactRadioButton);
     822      this.histogramGroupBox.Controls.Add(this.histogramBinsApproximatelyRadioButton);
     823      this.histogramGroupBox.Controls.Add(this.histogramBinsNumericUpDown);
     824      this.histogramGroupBox.Controls.Add(this.label16);
     825      this.histogramGroupBox.Controls.Add(this.label17);
     826      this.histogramGroupBox.Controls.Add(this.histogramAggregationComboBox);
     827      this.histogramGroupBox.Location = new System.Drawing.Point(3, 3);
     828      this.histogramGroupBox.Name = "histogramGroupBox";
     829      this.histogramGroupBox.Size = new System.Drawing.Size(441, 75);
     830      this.histogramGroupBox.TabIndex = 2;
     831      this.histogramGroupBox.TabStop = false;
     832      this.histogramGroupBox.Text = "Histogram Properties";
     833      //
     834      // histogramBinsExactRadioButton
     835      //
     836      this.histogramBinsExactRadioButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     837      this.histogramBinsExactRadioButton.AutoSize = true;
     838      this.histogramBinsExactRadioButton.Location = new System.Drawing.Point(383, 19);
     839      this.histogramBinsExactRadioButton.Name = "histogramBinsExactRadioButton";
     840      this.histogramBinsExactRadioButton.Size = new System.Drawing.Size(52, 17);
     841      this.histogramBinsExactRadioButton.TabIndex = 3;
     842      this.histogramBinsExactRadioButton.TabStop = true;
     843      this.histogramBinsExactRadioButton.Text = "&Exact";
     844      this.histogramBinsExactRadioButton.UseVisualStyleBackColor = true;
     845      this.histogramBinsExactRadioButton.CheckedChanged += new System.EventHandler(this.histogramBinsExactRadioButton_CheckedChanged);
     846      //
     847      // histogramBinsApproximatelyRadioButton
     848      //
     849      this.histogramBinsApproximatelyRadioButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     850      this.histogramBinsApproximatelyRadioButton.AutoSize = true;
     851      this.histogramBinsApproximatelyRadioButton.Location = new System.Drawing.Point(287, 19);
     852      this.histogramBinsApproximatelyRadioButton.Name = "histogramBinsApproximatelyRadioButton";
     853      this.histogramBinsApproximatelyRadioButton.Size = new System.Drawing.Size(90, 17);
     854      this.histogramBinsApproximatelyRadioButton.TabIndex = 2;
     855      this.histogramBinsApproximatelyRadioButton.TabStop = true;
     856      this.histogramBinsApproximatelyRadioButton.Text = "&Approximately";
     857      this.histogramBinsApproximatelyRadioButton.UseVisualStyleBackColor = true;
     858      //
     859      // histogramBinsNumericUpDown
     860      //
     861      this.histogramBinsNumericUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     862            | System.Windows.Forms.AnchorStyles.Right)));
     863      this.histogramBinsNumericUpDown.Location = new System.Drawing.Point(82, 19);
     864      this.histogramBinsNumericUpDown.Minimum = new decimal(new int[] {
     865            1,
     866            0,
     867            0,
     868            0});
     869      this.histogramBinsNumericUpDown.Name = "histogramBinsNumericUpDown";
     870      this.histogramBinsNumericUpDown.Size = new System.Drawing.Size(186, 20);
     871      this.histogramBinsNumericUpDown.TabIndex = 1;
     872      this.histogramBinsNumericUpDown.Value = new decimal(new int[] {
     873            1,
     874            0,
     875            0,
     876            0});
     877      this.histogramBinsNumericUpDown.ValueChanged += new System.EventHandler(this.histogramBinsNumericUpDown_ValueChanged);
     878      //
     879      // label16
     880      //
     881      this.label16.AutoSize = true;
     882      this.label16.Location = new System.Drawing.Point(6, 49);
     883      this.label16.Name = "label16";
     884      this.label16.Size = new System.Drawing.Size(67, 13);
     885      this.label16.TabIndex = 0;
     886      this.label16.Text = "Aggregation:";
     887      //
     888      // label17
     889      //
     890      this.label17.AutoSize = true;
     891      this.label17.Location = new System.Drawing.Point(6, 21);
     892      this.label17.Name = "label17";
     893      this.label17.Size = new System.Drawing.Size(30, 13);
     894      this.label17.TabIndex = 0;
     895      this.label17.Text = "&Bins:";
     896      //
     897      // histogramAggregationComboBox
     898      //
     899      this.histogramAggregationComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     900            | System.Windows.Forms.AnchorStyles.Right)));
     901      this.histogramAggregationComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     902      this.histogramAggregationComboBox.FormattingEnabled = true;
     903      this.histogramAggregationComboBox.Location = new System.Drawing.Point(82, 45);
     904      this.histogramAggregationComboBox.Name = "histogramAggregationComboBox";
     905      this.histogramAggregationComboBox.Size = new System.Drawing.Size(353, 21);
     906      this.histogramAggregationComboBox.TabIndex = 3;
     907      this.histogramAggregationComboBox.SelectedValueChanged += new System.EventHandler(this.histogramAggregationComboBox_SelectedValueChanged);
    793908      //
    794909      // titleTextBox
     
    9271042      this.panel5.ResumeLayout(false);
    9281043      this.panel5.PerformLayout();
     1044      this.histogramTabPage.ResumeLayout(false);
     1045      this.histogramGroupBox.ResumeLayout(false);
     1046      this.histogramGroupBox.PerformLayout();
     1047      ((System.ComponentModel.ISupportInitialize)(this.histogramBinsNumericUpDown)).EndInit();
    9291048      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
    9301049      this.ResumeLayout(false);
     
    10051124    private System.Windows.Forms.CheckBox yAxisSecondaryLogScaleCheckBox;
    10061125    private System.Windows.Forms.CheckBox yAxisPrimaryLogScaleCheckBox;
     1126    private System.Windows.Forms.TabPage histogramTabPage;
     1127    private System.Windows.Forms.GroupBox histogramGroupBox;
     1128    private System.Windows.Forms.RadioButton histogramBinsExactRadioButton;
     1129    private System.Windows.Forms.RadioButton histogramBinsApproximatelyRadioButton;
     1130    private System.Windows.Forms.NumericUpDown histogramBinsNumericUpDown;
     1131    private System.Windows.Forms.Label label16;
     1132    private System.Windows.Forms.Label label17;
     1133    private System.Windows.Forms.ComboBox histogramAggregationComboBox;
    10071134  }
    10081135}
  • branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/DataTableVisualPropertiesControl.cs

    r14600 r15282  
    2020#endregion
    2121
     22using System;
     23using System.Drawing;
     24using System.Windows.Forms;
    2225using HeuristicLab.MainForm;
    2326using HeuristicLab.MainForm.WindowsForms;
    24 using System.Drawing;
    25 using System.Windows.Forms;
    2627
    2728namespace HeuristicLab.Analysis.Views {
     
    5859      errorProvider.SetIconPadding(yAxisSecondaryMinimumFixedTextBox, 2);
    5960      errorProvider.SetIconPadding(yAxisSecondaryMaximumFixedTextBox, 2);
     61      histogramAggregationComboBox.DataSource = Enum.GetValues(typeof(DataTableVisualProperties.DataTableHistogramAggregation));
    6062    }
    6163
     
    101103          yAxisSecondaryMaximumFixedTextBox.Text = string.Empty;
    102104          yAxisSecondaryLogScaleCheckBox.Checked = false;
     105
     106          histogramBinsNumericUpDown.Value = 1;
     107          histogramBinsApproximatelyRadioButton.Checked = false;
     108          histogramBinsExactRadioButton.Checked = false;
     109          histogramAggregationComboBox.SelectedIndex = -1;
    103110        } else {
    104111          titleFontLabel.Text = "( " + FormatFont(Content.TitleFont) + " )";
     
    139146          yAxisSecondaryMaximumFixedTextBox.Text = Content.SecondYAxisMaximumFixedValue.ToString();
    140147          yAxisSecondaryLogScaleCheckBox.Checked = Content.SecondYAxisLogScale;
     148
     149          if (Content.HistogramBins < histogramBinsNumericUpDown.Minimum)
     150            histogramBinsNumericUpDown.Value = histogramBinsNumericUpDown.Minimum;
     151          else if (Content.HistogramBins > histogramBinsNumericUpDown.Maximum)
     152            histogramBinsNumericUpDown.Value = histogramBinsNumericUpDown.Maximum;
     153          else histogramBinsNumericUpDown.Value = Content.HistogramBins;
     154          histogramBinsApproximatelyRadioButton.Checked = !Content.HistogramExactBins;
     155          histogramBinsExactRadioButton.Checked = Content.HistogramExactBins;
     156          histogramAggregationComboBox.SelectedItem = Content.HistogramAggregation;
    141157        }
    142158      } finally { SuppressEvents = false; }
     
    483499      }
    484500    }
     501
     502    private void histogramBinsNumericUpDown_ValueChanged(object sender, System.EventArgs e) {
     503      if (!SuppressEvents && Content != null) {
     504        Content.HistogramBins = (int)histogramBinsNumericUpDown.Value;
     505      }
     506    }
     507
     508    private void histogramBinsExactRadioButton_CheckedChanged(object sender, System.EventArgs e) {
     509      if (!SuppressEvents && Content != null) {
     510        SuppressEvents = true;
     511        try {
     512          Content.HistogramExactBins = histogramBinsExactRadioButton.Checked;
     513        } finally { SuppressEvents = false; }
     514      }
     515    }
     516
     517    private void histogramAggregationComboBox_SelectedValueChanged(object sender, System.EventArgs e) {
     518      if (!SuppressEvents && Content != null) {
     519        SuppressEvents = true;
     520        try {
     521          Content.HistogramAggregation = (DataTableVisualProperties.DataTableHistogramAggregation)histogramAggregationComboBox.SelectedValue;
     522        } finally { SuppressEvents = false; }
     523      }
     524    }
    485525    #endregion
    486526
  • branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/HeatMapView.resx

  • branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/HeuristicLab.Analysis.Views-3.3.csproj

    r14600 r15282  
    177177  </ItemGroup>
    178178  <ItemGroup>
    179     <Compile Include="DataTableControl.cs">
    180       <SubType>UserControl</SubType>
    181     </Compile>
    182     <Compile Include="DataTableControl.Designer.cs">
    183       <DependentUpon>DataTableControl.cs</DependentUpon>
     179    <Compile Include="DataTableView.cs">
     180      <SubType>UserControl</SubType>
     181    </Compile>
     182    <Compile Include="DataTableView.Designer.cs">
     183      <DependentUpon>DataTableView.cs</DependentUpon>
     184    </Compile>
     185    <Compile Include="GanttDataView.cs">
     186      <SubType>UserControl</SubType>
     187    </Compile>
     188    <Compile Include="GanttDataView.Designer.cs">
     189      <DependentUpon>GanttDataView.cs</DependentUpon>
    184190    </Compile>
    185191    <Compile Include="IndexedDataTableView.cs">
     
    189195      <DependentUpon>IndexedDataTableView.cs</DependentUpon>
    190196    </Compile>
    191     <Compile Include="ScatterPlotControl.cs">
    192       <SubType>UserControl</SubType>
    193     </Compile>
    194     <Compile Include="ScatterPlotControl.Designer.cs">
    195       <DependentUpon>ScatterPlotControl.cs</DependentUpon>
     197    <Compile Include="ScatterPlotView.cs">
     198      <SubType>UserControl</SubType>
     199    </Compile>
     200    <Compile Include="ScatterPlotView.Designer.cs">
     201      <DependentUpon>ScatterPlotView.cs</DependentUpon>
    196202    </Compile>
    197203    <Compile Include="ScatterPlotVisualPropertiesDialog.cs">
     
    213219      <DependentUpon>ScatterPlotDataRowVisualPropertiesControl.cs</DependentUpon>
    214220    </Compile>
    215     <Compile Include="ScatterPlotView.cs">
    216       <SubType>UserControl</SubType>
    217     </Compile>
    218     <Compile Include="ScatterPlotView.Designer.cs">
    219       <DependentUpon>ScatterPlotView.cs</DependentUpon>
    220     </Compile>
    221221    <Compile Include="ScatterPlotHistoryView.cs">
    222222      <SubType>UserControl</SubType>
     
    282282    <Compile Include="Plugin.cs" />
    283283    <Compile Include="Properties\AssemblyInfo.cs" />
    284     <Compile Include="DataTableView.cs">
    285       <SubType>UserControl</SubType>
    286     </Compile>
    287     <Compile Include="DataTableView.Designer.cs">
    288       <DependentUpon>DataTableView.cs</DependentUpon>
    289     </Compile>
    290284    <Compile Include="HistogramControl.cs">
    291285      <SubType>UserControl</SubType>
  • branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/IndexedDataTableView.cs

    r13745 r15282  
    158158      series.BorderColor = Color.Empty;
    159159
    160       if (row.VisualProperties.Color != Color.Empty)
    161         series.Color = row.VisualProperties.Color;
    162       else series.Color = Color.Empty;
     160      series.Color = row.VisualProperties.Color;
    163161      series.IsVisibleInLegend = row.VisualProperties.IsVisibleInLegend;
    164162
     
    561559      for (int i = 0; i < row.Values.Count; i++) {
    562560        var value = row.Values[i];
     561        if (IsInvalidValue(value.Item2)) continue;
    563562        var point = new DataPoint();
    564563        point.SetValueXY(value.Item1, value.Item2);
  • branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/ScatterPlotDataRowVisualPropertiesControl.Designer.cs

    r14600 r15282  
    6565      this.regressionLegendTextBox = new System.Windows.Forms.TextBox();
    6666      this.toolTip = new System.Windows.Forms.ToolTip(this.components);
     67      this.clearColorButton = new System.Windows.Forms.Button();
    6768      ((System.ComponentModel.ISupportInitialize)(this.pointSizeNumericUpDown)).BeginInit();
    6869      this.regressionGroupBox.SuspendLayout();
     
    278279      this.regressionLegendTextBox.Validated += new System.EventHandler(this.regressionLegendTextBox_Validated);
    279280      //
     281      // clearColorButton
     282      //
     283      this.clearColorButton.BackColor = System.Drawing.SystemColors.ActiveCaption;
     284      this.clearColorButton.Cursor = System.Windows.Forms.Cursors.Default;
     285      this.clearColorButton.FlatAppearance.BorderSize = 0;
     286      this.clearColorButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     287      this.clearColorButton.ForeColor = System.Drawing.Color.Transparent;
     288      this.clearColorButton.Location = new System.Drawing.Point(125, 65);
     289      this.clearColorButton.Margin = new System.Windows.Forms.Padding(0);
     290      this.clearColorButton.Name = "clearColorButton";
     291      this.clearColorButton.Size = new System.Drawing.Size(15, 16);
     292      this.clearColorButton.TabIndex = 11;
     293      this.clearColorButton.TabStop = false;
     294      this.clearColorButton.UseVisualStyleBackColor = false;
     295      this.clearColorButton.Click += new System.EventHandler(this.clearColorButton_Click);
     296      //
    280297      // ScatterPlotDataRowVisualPropertiesControl
    281298      //
    282299      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
     300      this.Controls.Add(this.clearColorButton);
    283301      this.Controls.Add(this.regressionGroupBox);
    284302      this.Controls.Add(this.pointSizeNumericUpDown);
     
    324342    private System.Windows.Forms.ToolTip toolTip;
    325343    private System.Windows.Forms.CheckBox isRegressionVisibleInLegendCheckBox;
     344    private System.Windows.Forms.Button clearColorButton;
    326345  }
    327346}
  • branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/ScatterPlotDataRowVisualPropertiesControl.cs

    r14600 r15282  
    2323using System.Drawing;
    2424using System.Windows.Forms;
     25using HeuristicLab.Common.Resources;
    2526using HeuristicLab.MainForm;
    2627using HeuristicLab.MainForm.WindowsForms;
     
    4546      pointStyleComboBox.DataSource = Enum.GetValues(typeof(ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle));
    4647      regressionTypeComboBox.DataSource = Enum.GetValues(typeof(ScatterPlotDataRowVisualProperties.ScatterPlotDataRowRegressionType));
     48      clearColorButton.BackColor = Color.Transparent;
     49      clearColorButton.BackgroundImage = VSImageLibrary.Delete;
    4750      SetEnabledStateOfControls();
    4851    }
     
    8790      pointStyleComboBox.Enabled = Content != null;
    8891      colorButton.Enabled = Content != null;
    89       colorButton.Enabled = Content != null;
     92      clearColorButton.Visible = Content != null && !Content.Color.IsEmpty;
    9093      isVisibleInLegendCheckBox.Enabled = Content != null;
    9194      pointSizeNumericUpDown.Enabled = Content != null;
     
    111114        colorButton.BackColor = Content.Color;
    112115        colorButton.Text = String.Empty;
     116        clearColorButton.Visible = true;
     117      }
     118    }
     119
     120    private void clearColorButton_Click(object sender, EventArgs e) {
     121      if (!SuppressEvents && Content != null) {
     122        Content.Color = Color.Empty;
     123        colorButton.BackColor = SystemColors.Control;
     124        colorButton.Text = "?";
     125        clearColorButton.Visible = false;
    113126      }
    114127    }
Note: See TracChangeset for help on using the changeset viewer.