Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Visualization.Test/LegendForm.cs @ 1134

Last change on this file since 1134 was 1048, checked in by shofstad, 16 years ago

Legend implementation finished (#407)

File size: 714 bytes
Line 
1using System.Drawing;
2using System.Windows.Forms;
3
4namespace HeuristicLab.Visualization.Test {
5  public partial class LegendForm : Form {
6    public LegendForm() {
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, 5));
18      ls.AddLegendItem(new LegendItem("test2", Color.Red, 5));
19
20      mainShape.AddShape(ls);
21    }
22  }
23}
Note: See TracBrowser for help on using the repository browser.