Changeset 1240 for trunk/sources/HeuristicLab.Visualization/LineShape.cs
- Timestamp:
- 03/02/09 22:03:41 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/LineShape.cs
r1234 r1240 4 4 namespace HeuristicLab.Visualization { 5 5 public class LineShape : IShape { 6 private IShape parent; 6 7 private RectangleD boundingBox; 7 8 … … 33 34 } 34 35 36 public RectangleD ClippingArea { 37 get { return Parent.ClippingArea; } 38 } 39 40 public Rectangle Viewport { 41 get { return Parent.Viewport; } 42 } 43 44 public IShape Parent { 45 get { return parent; } 46 set { parent = value; } 47 } 48 35 49 public double Y1 { 36 50 get { return boundingBox.Y1; } … … 57 71 /// </summary> 58 72 /// <param name="graphics">graphics handle to draw to</param> 59 /// <param name="parentViewport">rectangle in value-coordinates to display</param> 60 /// <param name="parentClippingArea">rectangle in screen-coordinates to draw</param> 61 public void Draw(Graphics graphics, Rectangle parentViewport, RectangleD parentClippingArea) { 62 Rectangle screenRect = Transform.ToScreen(boundingBox, parentViewport, parentClippingArea); 73 public void Draw(Graphics graphics) { 74 Rectangle screenRect = Transform.ToScreen(boundingBox, Parent.Viewport, Parent.ClippingArea); 63 75 64 76 graphics.DrawLine(GetPen(), screenRect.Left, screenRect.Bottom, screenRect.Right, screenRect.Top);
Note: See TracChangeset
for help on using the changeset viewer.