Free cookie consent management tool by TermsFeed Policy Generator

Changeset 872 for trunk


Ignore:
Timestamp:
11/29/08 13:39:39 (16 years ago)
Author:
shofstad
Message:

changes on LegendForm (#407)

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  
    2424    /// </summary>
    2525    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);
    2741      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";
    2845      this.Text = "LegendForm";
     46      this.ResumeLayout(false);
     47
    2948    }
    3049
    3150    #endregion
     51
     52    private CanvasUI canvasUI;
    3253  }
    3354}
  • 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;
     1using System.Drawing;
    82using System.Windows.Forms;
    93
     
    126    public LegendForm() {
    137      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);
    1420    }
    1521  }
Note: See TracChangeset for help on using the changeset viewer.