Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 1233 was 1233, checked in by mstoeger, 15 years ago

General housekeeping (#498) Removed some old unused Z-Order values. Replaced some var types by concrete types. Renamed some LineShape properties. Added caching of Pens and Brushes in LineShape and RectangleShape. Put axis tick calculation algorithm into its own class.

File size: 724 bytes
RevLine 
[872]1using System.Drawing;
[865]2using System.Windows.Forms;
[1233]3using HeuristicLab.Visualization.Legend;
[865]4
5namespace HeuristicLab.Visualization.Test {
6  public partial class LegendForm : Form {
7    public LegendForm() {
8      InitializeComponent();
[872]9      canvasUI.MainCanvas.WorldShape = new WorldShape(new RectangleD(0, 0, 800, 600), new RectangleD(0, 0, 800, 600));
10
11      CreateLegendShape();
[865]12    }
[872]13
14    private void CreateLegendShape() {
15      WorldShape mainShape = canvasUI.MainCanvas.WorldShape;
[1195]16      LegendShape ls = new LegendShape();
[1048]17      ls.AddLegendItem(new LegendItem("test", Color.Black, 5));
18      ls.AddLegendItem(new LegendItem("test2", Color.Red, 5));
[872]19
20      mainShape.AddShape(ls);
21    }
[865]22  }
[872]23}
Note: See TracBrowser for help on using the repository browser.