Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9276 for trunk/sources


Ignore:
Timestamp:
03/05/13 14:25:51 (12 years ago)
Author:
abeham
Message:

#1789: Added possibility to set transparency of the bubbles

Location:
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBubbleChartView.Designer.cs

    r9229 r9276  
    7373      this.sizeTrackBar = new System.Windows.Forms.TrackBar();
    7474      this.getDataAsMatrixToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     75      this.transparencyTrackBar = new System.Windows.Forms.TrackBar();
     76      this.transparencyLabel = new System.Windows.Forms.Label();
    7577      ((System.ComponentModel.ISupportInitialize)(this.xTrackBar)).BeginInit();
    7678      ((System.ComponentModel.ISupportInitialize)(this.yTrackBar)).BeginInit();
     
    7880      this.radioButtonGroup.SuspendLayout();
    7981      ((System.ComponentModel.ISupportInitialize)(this.sizeTrackBar)).BeginInit();
     82      ((System.ComponentModel.ISupportInitialize)(this.transparencyTrackBar)).BeginInit();
    8083      this.SuspendLayout();
    8184      //
     
    188191      // chart
    189192      //
    190       this.chart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    191             | System.Windows.Forms.AnchorStyles.Left)
     193      this.chart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
     194            | System.Windows.Forms.AnchorStyles.Left) 
    192195            | System.Windows.Forms.AnchorStyles.Right)));
    193196      chartArea1.Name = "ChartArea1";
     
    283286      this.colorXAxisButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    284287      this.colorXAxisButton.Enabled = false;
    285       this.colorXAxisButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.DisplayInColorVertical;
     288      this.colorXAxisButton.Image = ((System.Drawing.Image)(resources.GetObject("colorXAxisButton.Image")));
    286289      this.colorXAxisButton.Location = new System.Drawing.Point(719, 469);
    287290      this.colorXAxisButton.Name = "colorXAxisButton";
     
    295298      //
    296299      this.colorYAxisButton.Enabled = false;
    297       this.colorYAxisButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.DisplayInColor;
     300      this.colorYAxisButton.Image = ((System.Drawing.Image)(resources.GetObject("colorYAxisButton.Image")));
    298301      this.colorYAxisButton.Location = new System.Drawing.Point(251, 3);
    299302      this.colorYAxisButton.Name = "colorYAxisButton";
     
    323326      this.sizeTrackBar.Size = new System.Drawing.Size(64, 45);
    324327      this.sizeTrackBar.TabIndex = 24;
    325       this.sizeTrackBar.TickFrequency = 25;
     328      this.sizeTrackBar.TickFrequency = 20;
    326329      this.sizeTrackBar.TickStyle = System.Windows.Forms.TickStyle.TopLeft;
    327330      this.sizeTrackBar.ValueChanged += new System.EventHandler(this.sizeTrackBar_ValueChanged);
     
    334337      this.getDataAsMatrixToolStripMenuItem.Click += new System.EventHandler(this.getDataAsMatrixToolStripMenuItem_Click);
    335338      //
     339      // transparencyTrackBar
     340      //
     341      this.transparencyTrackBar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     342      this.transparencyTrackBar.LargeChange = 16;
     343      this.transparencyTrackBar.Location = new System.Drawing.Point(295, 469);
     344      this.transparencyTrackBar.Maximum = 254;
     345      this.transparencyTrackBar.Name = "transparencyTrackBar";
     346      this.transparencyTrackBar.Size = new System.Drawing.Size(64, 45);
     347      this.transparencyTrackBar.TabIndex = 24;
     348      this.transparencyTrackBar.TickStyle = System.Windows.Forms.TickStyle.None;
     349      this.transparencyTrackBar.ValueChanged += new System.EventHandler(this.transparencyTrackBar_ValueChanged);
     350      //
     351      // transparencyLabel
     352      //
     353      this.transparencyLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     354      this.transparencyLabel.AutoSize = true;
     355      this.transparencyLabel.Location = new System.Drawing.Point(214, 474);
     356      this.transparencyLabel.Name = "transparencyLabel";
     357      this.transparencyLabel.Size = new System.Drawing.Size(75, 13);
     358      this.transparencyLabel.TabIndex = 12;
     359      this.transparencyLabel.Text = "Transparency:";
     360      //
    336361      // RunCollectionBubbleChartView
    337362      //
     
    339364      this.BackColor = System.Drawing.SystemColors.Window;
    340365      this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     366      this.Controls.Add(this.transparencyTrackBar);
    341367      this.Controls.Add(this.sizeTrackBar);
    342368      this.Controls.Add(this.colorYAxisButton);
     
    349375      this.Controls.Add(this.sizeComboBox);
    350376      this.Controls.Add(this.yJitterLabel);
     377      this.Controls.Add(this.transparencyLabel);
    351378      this.Controls.Add(this.xJitterlabel);
    352379      this.Controls.Add(this.xTrackBar);
     
    364391      this.radioButtonGroup.PerformLayout();
    365392      ((System.ComponentModel.ISupportInitialize)(this.sizeTrackBar)).EndInit();
     393      ((System.ComponentModel.ISupportInitialize)(this.transparencyTrackBar)).EndInit();
    366394      this.ResumeLayout(false);
    367395      this.PerformLayout();
     
    394422    private System.Windows.Forms.TrackBar sizeTrackBar;
    395423    private System.Windows.Forms.ToolStripMenuItem getDataAsMatrixToolStripMenuItem;
     424    private System.Windows.Forms.TrackBar transparencyTrackBar;
     425    private System.Windows.Forms.Label transparencyLabel;
    396426  }
    397427}
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBubbleChartView.cs

    r9267 r9276  
    313313        double sizeChange = Math.Abs(sizeTrackBar.Value) * relativeSize;
    314314        point.MarkerSize = (int)Math.Round(sizeChange + smallestBubbleSize);
     315        point.Color = Color.FromArgb(255 - transparencyTrackBar.Value, ((IRun)point.Tag).Color);
    315316      }
    316317    }
     
    758759      view.ReadOnly = true;
    759760    }
     761
     762    private void transparencyTrackBar_ValueChanged(object sender, EventArgs e) {
     763      UpdateMarkerSizes();
     764    }
    760765    #endregion
    761766
Note: See TracChangeset for help on using the changeset viewer.