Rev | Line | |
---|
[872] | 1 | using System.Drawing;
|
---|
[865] | 2 | using System.Windows.Forms;
|
---|
| 3 |
|
---|
| 4 | namespace HeuristicLab.Visualization.Test {
|
---|
| 5 | public partial class LegendForm : Form {
|
---|
| 6 | public LegendForm() {
|
---|
| 7 | InitializeComponent();
|
---|
[872] | 8 | canvasUI.MainCanvas.WorldShape = new WorldShape(new RectangleD(0, 0, 800, 600), new RectangleD(0, 0, 800, 600));
|
---|
| 9 |
|
---|
| 10 | CreateLegendShape();
|
---|
| 11 |
|
---|
[865] | 12 | }
|
---|
[872] | 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);
|
---|
| 20 | }
|
---|
[865] | 21 | }
|
---|
[872] | 22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.