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/HorizontalLineShape.cs

    r1234 r1240  
    1717      minLineShape = new LineShape(0, yMin, 1, yMin, color, thickness, style);
    1818      maxLineShape = new LineShape(0, yMax, 1, yMax, color, thickness, style);
    19       shapes.Add(minLineShape);
    20       shapes.Add(maxLineShape);
     19      AddShape(minLineShape);
     20      AddShape(maxLineShape);
    2121    }
    2222
    23     public override void Draw(Graphics graphics, Rectangle parentViewport, RectangleD parentClippingArea) {
     23    public override void Draw(Graphics graphics) {
    2424      minLineShape.X1 = ClippingArea.X1;
    2525      minLineShape.X2 = ClippingArea.X2;
    2626      maxLineShape.X1 = ClippingArea.X1;
    2727      maxLineShape.X2 = ClippingArea.X2;
    28       base.Draw(graphics, parentViewport, parentClippingArea);
     28      base.Draw(graphics);
    2929    }
    3030
Note: See TracChangeset for help on using the changeset viewer.