Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/02/09 22:03:41 (15 years ago)
Author:
mstoeger
Message:

Transformations on shapes are possible outside of the Draw method. (#424)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization.Test/LegendForm.cs

    r1233 r1240  
    77    public LegendForm() {
    88      InitializeComponent();
    9       canvasUI.MainCanvas.WorldShape = new WorldShape(new RectangleD(0, 0, 800, 600), new RectangleD(0, 0, 800, 600));
    109
    1110      CreateLegendShape();
     
    1312
    1413    private void CreateLegendShape() {
    15       WorldShape mainShape = canvasUI.MainCanvas.WorldShape;
    1614      LegendShape ls = new LegendShape();
    1715      ls.AddLegendItem(new LegendItem("test", Color.Black, 5));
    1816      ls.AddLegendItem(new LegendItem("test2", Color.Red, 5));
    1917
    20       mainShape.AddShape(ls);
     18      canvasUI.Canvas.AddShape(ls);
    2119    }
    2220  }
Note: See TracChangeset for help on using the changeset viewer.