- Timestamp:
- 03/13/09 20:12:20 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Visualization
- Files:
-
- 2 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) { -
trunk/sources/HeuristicLab.Visualization/LineChart.cs
r1345 r1346 62 62 } 63 63 64 /// <summary> 65 /// updates the view settings 66 /// </summary> 64 67 private void UpdateViewSettings() { 65 68 titleShape.Font = viewSettings.TitleFont; … … 142 145 } 143 146 147 /// <summary> 148 /// sets the legend position 149 /// </summary> 144 150 private void SetLegendPosition() { 145 151 switch (viewSettings.LegendPosition) {
Note: See TracChangeset
for help on using the changeset viewer.