Changeset 1346


Ignore:
Timestamp:
03/13/09 20:12:20 (12 years ago)
Author:
shofstad
Message:

added code comments (#406)

Location:
trunk/sources/HeuristicLab.Visualization
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization/Legend/LegendShape.cs

    r1342 r1346  
    7272    /// draws the legend as a row at the top or bottom of the WorldShape
    7373    /// </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>
    7777    private void CreateRow(LegendItem item, double x, double y) {
    7878      AddShape(new LineShape(x, y - 10, x + 20, y - 10, item.Color, item.Thickness, DrawingStyle.Solid));
     
    8383    /// draws the legend as a column on the right or left side of the WorldShape
    8484    /// </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>
    8787    private void CreateColumn(LegendItem item, double y) {
    8888      AddShape(new LineShape(10, y - 10, 30, y - 10, item.Color, item.Thickness, DrawingStyle.Solid));
     
    9090    }
    9191
     92    /// <summary>
     93    /// adds a legenditem to the items list
     94    /// </summary>
     95    /// <param name="item">legenditem to add</param>
    9296    public void AddLegendItem(LegendItem item) {
    9397      legendItems.Add(item);
    9498    }
    9599
     100    /// <summary>
     101    /// removes a legenditem from the items list
     102    /// </summary>
     103    /// <param name="item">legenditem to remove</param>
    96104    public void RemoveLegendItem(LegendItem item) {
    97105      legendItems.Remove(item);
    98106    }
    99107
     108    /// <summary>
     109    /// deletes the legenditem list
     110    /// </summary>
    100111    public void ClearLegendItems() {
    101112      legendItems.Clear();
     
    118129    }
    119130
     131    /// <summary>
     132    /// updates the font settings of the legend
     133    /// </summary>
    120134    private void UpdateTextShapes() {
    121135      foreach (IShape shape in shapes) {
  • trunk/sources/HeuristicLab.Visualization/LineChart.cs

    r1345 r1346  
    6262    }
    6363
     64    /// <summary>
     65    /// updates the view settings
     66    /// </summary>
    6467    private void UpdateViewSettings() {
    6568      titleShape.Font = viewSettings.TitleFont;
     
    142145    }
    143146
     147    /// <summary>
     148    /// sets the legend position
     149    /// </summary>
    144150    private void SetLegendPosition() {
    145151      switch (viewSettings.LegendPosition) {
Note: See TracChangeset for help on using the changeset viewer.