Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/30/09 17:53:52 (15 years ago)
Author:
shofstad
Message:

Legend implementation changed (#407)

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources

    • Property svn:ignore
      •  

        old new  
        33HeuristicLab.resharper
        44HeuristicLab.resharper.user
         5HeuristicLab.4.1.resharper.user
  • trunk/sources/HeuristicLab.Visualization/LineChart.cs

    r1187 r1195  
    55using System.Windows.Forms;
    66using HeuristicLab.Core;
     7using HeuristicLab.Visualization.Options;
    78
    89namespace HeuristicLab.Visualization {
     
    5556      root.AddShape(linesShape);
    5657
    57       legendShape = new LegendShape(0, 0, 0, 0, 0, Color.Black);
    58       //legendShape.AddLegendItem(new LegendItem("test", Color.Red, 5));
    59       //legendShape.AddLegendItem(new LegendItem("test1", Color.Blue, 5));
    60       //legendShape.AddLegendItem(new LegendItem("test2", Color.Pink, 5));
    61       root.AddShape(legendShape);
    62 
    6358      xAxis = new XAxis();
    6459      root.AddShape(xAxis);
     
    7267      minMaxLineShape = new MinMaxLineShape(this.minDataValue, this.maxDataValue, 0, Color.Yellow, 4, DrawingStyle.Solid);
    7368      root.AddShape(minMaxLineShape);
     69
     70      legendShape = new LegendShape();
     71      root.AddShape(legendShape);
     72
    7473      canvas.MainCanvas.WorldShape = root;
    7574      canvas.Resize += delegate { UpdateLayout(); };
    76 
     75     
    7776      UpdateLayout();
    7877      maxDataRowCount = 0;
     
    117116
    118117      legendShape.BoundingBox = new RectangleD(10, 10, 110, canvas.Height - 50);
     118      legendShape.ClippingArea = new RectangleD(0, 0, legendShape.BoundingBox.Width,
     119                                                legendShape.BoundingBox.Height);
    119120    }
    120121
Note: See TracChangeset for help on using the changeset viewer.