Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/02/16 13:06:49 (7 years ago)
Author:
pfleck
Message:

#2713 Moved the charting logic out of DataTableView and ScatterPlotView into new DataTableControl and ScatterPlotControl.
This way, the charts can be reused without the name-textbox and description from the NamedItemView.

File:
1 edited

Legend:

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

    r14435 r14439  
    4545    /// </summary>
    4646    private void InitializeComponent() {
    47       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.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series();
    50       System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title();
    51       this.chart = new HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart();
    52       this.configureToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     47      this.chart = new HeuristicLab.Analysis.Views.DataTableControl();
    5348      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    54       ((System.ComponentModel.ISupportInitialize)(this.chart)).BeginInit();
    5549      this.SuspendLayout();
    5650      //
     
    7165                  | System.Windows.Forms.AnchorStyles.Left)
    7266                  | System.Windows.Forms.AnchorStyles.Right)));
    73       this.chart.BorderlineColor = System.Drawing.Color.Black;
    74       this.chart.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
    75       chartArea1.AxisX.Minimum = 0D;
    76       chartArea1.CursorX.IsUserEnabled = true;
    77       chartArea1.CursorX.IsUserSelectionEnabled = true;
    78       chartArea1.CursorY.IsUserEnabled = true;
    79       chartArea1.CursorY.IsUserSelectionEnabled = true;
    80       chartArea1.Name = "Default";
    81       this.chart.ChartAreas.Add(chartArea1);
    82       legend1.Alignment = System.Drawing.StringAlignment.Center;
    83       legend1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Top;
    84       legend1.Name = "Default";
    85       this.chart.Legends.Add(legend1);
    8667      this.chart.Location = new System.Drawing.Point(0, 26);
    8768      this.chart.Name = "chart";
    88       series1.ChartArea = "Default";
    89       series1.Legend = "Default";
    90       series1.Name = "Default";
    91       this.chart.Series.Add(series1);
    9269      this.chart.Size = new System.Drawing.Size(359, 248);
    9370      this.chart.TabIndex = 3;
    9471      this.chart.Text = "chart";
    95       title1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
    96       title1.Name = "Default";
    97       title1.Text = "Title";
    98       this.chart.Titles.Add(title1);
    99       this.chart.CustomizeLegend += new System.EventHandler<System.Windows.Forms.DataVisualization.Charting.CustomizeLegendEventArgs>(this.chart_CustomizeLegend);
    100       this.chart.MouseDown += new System.Windows.Forms.MouseEventHandler(this.chart_MouseDown);
    101       this.chart.MouseMove += new System.Windows.Forms.MouseEventHandler(this.chart_MouseMove);
    102       //
    103       // configureToolStripMenuItem
    104       //
    105       this.configureToolStripMenuItem.Name = "configureToolStripMenuItem";
    106       this.configureToolStripMenuItem.Size = new System.Drawing.Size(256, 22);
    107       this.configureToolStripMenuItem.Text = "Configure Chart";
    108       this.configureToolStripMenuItem.Click += new System.EventHandler(this.configureToolStripMenuItem_Click);
    10972      //
    11073      // DataTableView
     
    12083      this.Controls.SetChildIndex(this.nameTextBox, 0);
    12184      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
    122       ((System.ComponentModel.ISupportInitialize)(this.chart)).EndInit();
    12385      this.ResumeLayout(false);
    12486      this.PerformLayout();
    125 
    12687    }
    12788
    12889    #endregion
    12990
    130     protected HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart chart;
    131     private System.Windows.Forms.ToolStripMenuItem configureToolStripMenuItem;
     91    protected HeuristicLab.Analysis.Views.DataTableControl chart;
    13292  }
    13393}
Note: See TracChangeset for help on using the changeset viewer.