Free cookie consent management tool by TermsFeed Policy Generator

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

changes on LegendForm (#407)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.