Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/21/15 14:18:31 (9 years ago)
Author:
jkarder
Message:

#1265: merged changes from abeham

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/Primitives/Ellipse.cs

    r12535 r13045  
    2828      : base(chart, lowerLeft, upperRight) {
    2929    }
    30     public Ellipse(IChart chart, double x1, double y1, double x2, double y2)
    31       : this(chart, new PointD(x1, y1), new PointD(x2, y2)) {
    32     }
    3330    public Ellipse(IChart chart, PointD lowerLeft, PointD upperRight, Pen pen, Brush brush)
    3431      : base(chart, lowerLeft, upperRight, pen, brush) {
    35     }
    36     public Ellipse(IChart chart, double x1, double y1, double x2, double y2, Pen pen, Brush brush)
    37       : this(chart, new PointD(x1, y1), new PointD(x2, y2), pen, brush) {
    3832    }
    3933
     
    6761
    6862    public override void Draw(Graphics graphics) {
    69       Point p = Chart.TransformWorldToPixel(new PointD(LowerLeft.X, LowerLeft.Y + Size.Height));
    70       Size s = Chart.TransformWorldToPixel(Size);
     63      var p = Chart.TransformWorldToPixel(new PointD(LowerLeft.X, LowerLeft.Y + Size.Height));
     64      var s = Chart.TransformWorldToPixel(Size);
    7165      if (Brush != null)
    7266        graphics.FillEllipse(Brush, p.X, p.Y, s.Width, s.Height);
Note: See TracChangeset for help on using the changeset viewer.