Changeset 13045 for branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/Primitives/Ellipse.cs
- Timestamp:
- 10/21/15 14:18:31 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/Primitives/Ellipse.cs
r12535 r13045 28 28 : base(chart, lowerLeft, upperRight) { 29 29 } 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 }33 30 public Ellipse(IChart chart, PointD lowerLeft, PointD upperRight, Pen pen, Brush brush) 34 31 : 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) {38 32 } 39 33 … … 67 61 68 62 public override void Draw(Graphics graphics) { 69 Pointp = Chart.TransformWorldToPixel(new PointD(LowerLeft.X, LowerLeft.Y + Size.Height));70 Sizes = Chart.TransformWorldToPixel(Size);63 var p = Chart.TransformWorldToPixel(new PointD(LowerLeft.X, LowerLeft.Y + Size.Height)); 64 var s = Chart.TransformWorldToPixel(Size); 71 65 if (Brush != null) 72 66 graphics.FillEllipse(Brush, p.X, p.Y, s.Width, s.Height);
Note: See TracChangeset
for help on using the changeset viewer.