Changeset 1346 for trunk/sources/HeuristicLab.Visualization/Legend
- Timestamp:
- 03/13/09 20:12:20 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/Legend/LegendShape.cs
r1342 r1346 72 72 /// draws the legend as a row at the top or bottom of the WorldShape 73 73 /// </summary> 74 /// <param name="item"> </param>75 /// <param name="x"> </param>76 /// <param name="y"> </param>74 /// <param name="item">the legenditem to draw</param> 75 /// <param name="x">x axis to draw the item</param> 76 /// <param name="y">y axis to draw the item</param> 77 77 private void CreateRow(LegendItem item, double x, double y) { 78 78 AddShape(new LineShape(x, y - 10, x + 20, y - 10, item.Color, item.Thickness, DrawingStyle.Solid)); … … 83 83 /// draws the legend as a column on the right or left side of the WorldShape 84 84 /// </summary> 85 /// <param name="item"> </param>86 /// <param name="y"> </param>85 /// <param name="item">the legenditem to draw</param> 86 /// <param name="y">y axis to draw the item</param> 87 87 private void CreateColumn(LegendItem item, double y) { 88 88 AddShape(new LineShape(10, y - 10, 30, y - 10, item.Color, item.Thickness, DrawingStyle.Solid)); … … 90 90 } 91 91 92 /// <summary> 93 /// adds a legenditem to the items list 94 /// </summary> 95 /// <param name="item">legenditem to add</param> 92 96 public void AddLegendItem(LegendItem item) { 93 97 legendItems.Add(item); 94 98 } 95 99 100 /// <summary> 101 /// removes a legenditem from the items list 102 /// </summary> 103 /// <param name="item">legenditem to remove</param> 96 104 public void RemoveLegendItem(LegendItem item) { 97 105 legendItems.Remove(item); 98 106 } 99 107 108 /// <summary> 109 /// deletes the legenditem list 110 /// </summary> 100 111 public void ClearLegendItems() { 101 112 legendItems.Clear(); … … 118 129 } 119 130 131 /// <summary> 132 /// updates the font settings of the legend 133 /// </summary> 120 134 private void UpdateTextShapes() { 121 135 foreach (IShape shape in shapes) {
Note: See TracChangeset
for help on using the changeset viewer.