Changeset 872
- Timestamp:
- 11/29/08 13:39:39 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Visualization.Test
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization.Test/LegendForm.Designer.cs
r865 r872 24 24 /// </summary> 25 25 private void InitializeComponent() { 26 this.components = new System.ComponentModel.Container(); 26 this.canvasUI = new HeuristicLab.Visualization.CanvasUI(); 27 this.SuspendLayout(); 28 // 29 // canvasUI 30 // 31 this.canvasUI.Location = new System.Drawing.Point(12, 12); 32 this.canvasUI.MouseEventListener = null; 33 this.canvasUI.Name = "canvasUI"; 34 this.canvasUI.Size = new System.Drawing.Size(260, 240); 35 this.canvasUI.TabIndex = 0; 36 this.canvasUI.Text = "canvasUI"; 37 // 38 // LegendForm 39 // 40 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 27 41 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 42 this.ClientSize = new System.Drawing.Size(284, 264); 43 this.Controls.Add(this.canvasUI); 44 this.Name = "LegendForm"; 28 45 this.Text = "LegendForm"; 46 this.ResumeLayout(false); 47 29 48 } 30 49 31 50 #endregion 51 52 private CanvasUI canvasUI; 32 53 } 33 54 } -
trunk/sources/HeuristicLab.Visualization.Test/LegendForm.cs
r865 r872 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text; 1 using System.Drawing; 8 2 using System.Windows.Forms; 9 3 … … 12 6 public LegendForm() { 13 7 InitializeComponent(); 8 canvasUI.MainCanvas.WorldShape = new WorldShape(new RectangleD(0, 0, 800, 600), new RectangleD(0, 0, 800, 600)); 9 10 CreateLegendShape(); 11 12 } 13 14 private void CreateLegendShape() { 15 WorldShape mainShape = canvasUI.MainCanvas.WorldShape; 16 LegendShape ls = new LegendShape(0, 0, 100, 100, 0, Color.White); 17 ls.AddLegendItem(new LegendItem("test", Color.Black)); 18 19 mainShape.AddShape(ls); 14 20 } 15 21 }
Note: See TracChangeset
for help on using the changeset viewer.