Changeset 1977 for trunk/sources/HeuristicLab.Visualization/3.2/Legend
- Timestamp:
- 05/30/09 13:12:34 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/3.2/Legend/LegendItem.cs
r1877 r1977 3 3 namespace HeuristicLab.Visualization.Legend { 4 4 public class LegendItem { 5 6 5 // default width 7 6 // every legend under 100 gets the default width 8 7 public static readonly int WIDTH = 100; 9 8 9 private readonly IDataRow row; 10 10 11 /// <summary> 11 12 /// a legend item object with its properties 12 13 /// </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; 14 public LegendItem(IDataRow row) { 15 this.row = row; 20 16 } 21 17 22 public string Label { get; set; } 23 public Color Color { get; set; } 24 public int Thickness { get; set; } 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 } 25 29 } 26 30 }
Note: See TracChangeset
for help on using the changeset viewer.