Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/14/09 21:59:13 (15 years ago)
Author:
dwagner
Message:

Added functionality: Markers on every datapoint. (#581)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization/3.2/CompositeShape.cs

    r1530 r1559  
    66  public class CompositeShape : IShape {
    77    private IShape parent;
     8    private bool showChildShapes = true;
    89
    910    protected readonly List<IShape> shapes = new List<IShape>();
    1011    protected RectangleD boundingBox = RectangleD.Empty;
    1112
     13
     14
    1215    public virtual void Draw(Graphics graphics) {
     16      if(!showChildShapes)
     17        return;
    1318      foreach (IShape shape in shapes) {
    1419        shape.Draw(graphics);
     
    3944    }
    4045
     46    public bool ShowChildShapes {
     47      get { return showChildShapes; }
     48      set { showChildShapes = value; }
     49    }
     50
    4151    public void ClearShapes() {
    4252      shapes.Clear();
    4353      boundingBox = RectangleD.Empty;
     54    }
     55
     56    public IShape GetShape(int index) {
     57      return shapes[index];
    4458    }
    4559
Note: See TracChangeset for help on using the changeset viewer.