- Timestamp:
- 04/14/09 21:59:13 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/3.2/CompositeShape.cs
r1530 r1559 6 6 public class CompositeShape : IShape { 7 7 private IShape parent; 8 private bool showChildShapes = true; 8 9 9 10 protected readonly List<IShape> shapes = new List<IShape>(); 10 11 protected RectangleD boundingBox = RectangleD.Empty; 11 12 13 14 12 15 public virtual void Draw(Graphics graphics) { 16 if(!showChildShapes) 17 return; 13 18 foreach (IShape shape in shapes) { 14 19 shape.Draw(graphics); … … 39 44 } 40 45 46 public bool ShowChildShapes { 47 get { return showChildShapes; } 48 set { showChildShapes = value; } 49 } 50 41 51 public void ClearShapes() { 42 52 shapes.Clear(); 43 53 boundingBox = RectangleD.Empty; 54 } 55 56 public IShape GetShape(int index) { 57 return shapes[index]; 44 58 } 45 59
Note: See TracChangeset
for help on using the changeset viewer.