From 2a5db460a9d9091238f64c48a640aac7cbe40678 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Thu, 22 Apr 2021 20:43:24 -0500 Subject: implemented graph printing --- src/CS340.Plotter/Plot.Designer.cs | 81 ++++++++++++++++++++++++++++++-------- 1 file changed, 65 insertions(+), 16 deletions(-) (limited to 'src/CS340.Plotter/Plot.Designer.cs') diff --git a/src/CS340.Plotter/Plot.Designer.cs b/src/CS340.Plotter/Plot.Designer.cs index 562d725..3b8b8d2 100644 --- a/src/CS340.Plotter/Plot.Designer.cs +++ b/src/CS340.Plotter/Plot.Designer.cs @@ -29,38 +29,87 @@ namespace Plotter /// private void InitializeComponent() { - this.Canvas = new System.Windows.Forms.PictureBox(); - ((System.ComponentModel.ISupportInitialize)(this.Canvas)).BeginInit(); + this.BruteForcePlot = new System.Windows.Forms.PictureBox(); + this.EstimationPlot = new System.Windows.Forms.PictureBox(); + this.MSTPlot = new System.Windows.Forms.PictureBox(); + this.LayoutPanel = new System.Windows.Forms.TableLayoutPanel(); + ((System.ComponentModel.ISupportInitialize)(this.BruteForcePlot)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.EstimationPlot)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.MSTPlot)).BeginInit(); + this.LayoutPanel.SuspendLayout(); this.SuspendLayout(); // - // Canvas + // BruteForcePlot // - this.Canvas.Dock = System.Windows.Forms.DockStyle.Fill; - this.Canvas.Location = new System.Drawing.Point(0, 0); - this.Canvas.Name = "Canvas"; - this.Canvas.Size = new System.Drawing.Size(604, 368); - this.Canvas.TabIndex = 0; - this.Canvas.TabStop = false; - this.Canvas.SizeChanged += new System.EventHandler(this.Canvas_SizeChanged); - this.Canvas.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Canvas_MouseDown); + this.BruteForcePlot.Dock = System.Windows.Forms.DockStyle.Fill; + this.BruteForcePlot.Location = new System.Drawing.Point(3, 3); + this.BruteForcePlot.Name = "BruteForcePlot"; + this.BruteForcePlot.Size = new System.Drawing.Size(307, 404); + this.BruteForcePlot.TabIndex = 0; + this.BruteForcePlot.TabStop = false; + this.BruteForcePlot.SizeChanged += new System.EventHandler(this.Canvas_SizeChanged); + // + // EstimationPlot + // + this.EstimationPlot.Dock = System.Windows.Forms.DockStyle.Fill; + this.EstimationPlot.Location = new System.Drawing.Point(316, 3); + this.EstimationPlot.Name = "EstimationPlot"; + this.EstimationPlot.Size = new System.Drawing.Size(307, 404); + this.EstimationPlot.TabIndex = 1; + this.EstimationPlot.TabStop = false; + // + // MSTPlot + // + this.MSTPlot.Dock = System.Windows.Forms.DockStyle.Fill; + this.MSTPlot.Location = new System.Drawing.Point(629, 3); + this.MSTPlot.Name = "MSTPlot"; + this.MSTPlot.Size = new System.Drawing.Size(309, 404); + this.MSTPlot.TabIndex = 2; + this.MSTPlot.TabStop = false; + // + // LayoutPanel + // + this.LayoutPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.LayoutPanel.ColumnCount = 3; + this.LayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); + this.LayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); + this.LayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); + this.LayoutPanel.Controls.Add(this.EstimationPlot, 1, 0); + this.LayoutPanel.Controls.Add(this.MSTPlot, 2, 0); + this.LayoutPanel.Controls.Add(this.BruteForcePlot, 0, 0); + this.LayoutPanel.Location = new System.Drawing.Point(12, 12); + this.LayoutPanel.Name = "LayoutPanel"; + this.LayoutPanel.RowCount = 1; + this.LayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.LayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); + this.LayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); + this.LayoutPanel.Size = new System.Drawing.Size(941, 410); + this.LayoutPanel.TabIndex = 4; // // Plot // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(604, 368); - this.Controls.Add(this.Canvas); + this.ClientSize = new System.Drawing.Size(965, 434); + this.Controls.Add(this.LayoutPanel); this.Name = "Plot"; this.Text = "Plot"; - this.Load += new System.EventHandler(this.Plot_Load); - ((System.ComponentModel.ISupportInitialize)(this.Canvas)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.BruteForcePlot)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.EstimationPlot)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.MSTPlot)).EndInit(); + this.LayoutPanel.ResumeLayout(false); this.ResumeLayout(false); } #endregion - private System.Windows.Forms.PictureBox Canvas; + private System.Windows.Forms.PictureBox BruteForcePlot; + private System.Windows.Forms.PictureBox EstimationPlot; + private System.Windows.Forms.PictureBox MSTPlot; + private System.Windows.Forms.TableLayoutPanel LayoutPanel; } } -- cgit v1.2.3-70-g09d2