Last change
on this file since 1504 was
1240,
checked in by mstoeger, 16 years ago
|
Transformations on shapes are possible outside of the Draw method. (#424)
|
File size:
548 bytes
|
Line | |
---|
1 | using System.Drawing;
|
---|
2 | using System.Windows.Forms;
|
---|
3 | using HeuristicLab.Visualization.Legend;
|
---|
4 |
|
---|
5 | namespace HeuristicLab.Visualization.Test {
|
---|
6 | public partial class LegendForm : Form {
|
---|
7 | public LegendForm() {
|
---|
8 | InitializeComponent();
|
---|
9 |
|
---|
10 | CreateLegendShape();
|
---|
11 | }
|
---|
12 |
|
---|
13 | private void CreateLegendShape() {
|
---|
14 | LegendShape ls = new LegendShape();
|
---|
15 | ls.AddLegendItem(new LegendItem("test", Color.Black, 5));
|
---|
16 | ls.AddLegendItem(new LegendItem("test2", Color.Red, 5));
|
---|
17 |
|
---|
18 | canvasUI.Canvas.AddShape(ls);
|
---|
19 | }
|
---|
20 | }
|
---|
21 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.