Line | |
---|
1 | using System.Drawing;
|
---|
2 |
|
---|
3 | namespace HeuristicLab.Visualization.Legend {
|
---|
4 | public class LegendItem {
|
---|
5 |
|
---|
6 | // default width
|
---|
7 | // every legend under 100 gets the default width
|
---|
8 | public static readonly int WIDTH = 100;
|
---|
9 |
|
---|
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>
|
---|
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.