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