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