Rev | Line | |
---|
[1233] | 1 | using System.Drawing;
|
---|
| 2 |
|
---|
| 3 | namespace 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.