Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 2298 was 1977, checked in by shofstad, 15 years ago

Legend implementation updated (#407)

File size: 673 bytes
Line 
1using System.Drawing;
2
3namespace HeuristicLab.Visualization.Legend {
4  public class LegendItem {
5    // default width
6    // every legend under 100 gets the default width
7    public static readonly int WIDTH = 100;
8
9    private readonly IDataRow row;
10
11    /// <summary>
12    /// a legend item object with its properties
13    /// </summary>
14    public LegendItem(IDataRow row) {
15      this.row = row;
16    }
17
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    }
29  }
30}
Note: See TracBrowser for help on using the repository browser.