Free cookie consent management tool by TermsFeed Policy Generator

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

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

Legend implementation updated (#407)

File size: 789 bytes
RevLine 
[1233]1using System.Drawing;
2
3namespace HeuristicLab.Visualization.Legend {
4  public class LegendItem {
[1342]5
[1877]6    // default width
7    // every legend under 100 gets the default width
[1342]8    public static readonly int WIDTH = 100;
9
[1877]10    /// <summary>
11    /// a legend item object with its properties
12    /// </summary>
13    /// <param name="label">the label of the legend</param>
14    /// <param name="color">the color of the legend line</param>
15    /// <param name="thickness">the thickness of the legend line</param>
[1233]16    public LegendItem(string label, Color color, int thickness) {
17      Label = label;
18      Color = color;
19      Thickness = thickness;
20    }
21
22    public string Label { get; set; }
23    public Color Color { get; set; }
24    public int Thickness { get; set; }
25  }
26}
Note: See TracBrowser for help on using the repository browser.