Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Visualization/3.2/Legend/LegendItem.cs @ 2491

Last change on this file since 2491 was 1977, checked in by shofstad, 16 years ago

Legend implementation updated (#407)

File size: 673 bytes
RevLine 
[1233]1using System.Drawing;
2
3namespace HeuristicLab.Visualization.Legend {
4  public class LegendItem {
[1877]5    // default width
6    // every legend under 100 gets the default width
[1342]7    public static readonly int WIDTH = 100;
8
[1977]9    private readonly IDataRow row;
10
[1877]11    /// <summary>
12    /// a legend item object with its properties
13    /// </summary>
[1977]14    public LegendItem(IDataRow row) {
15      this.row = row;
[1233]16    }
17
[1977]18    public string Label {
19      get { return row.RowSettings.Label; }
20    }
21
22    public Color Color {
23      get { return row.RowSettings.Color; }
24    }
25
26    public int Thickness {
27      get { return row.RowSettings.Thickness; }
28    }
[1233]29  }
30}
Note: See TracBrowser for help on using the repository browser.