Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/22/09 12:06:29 (15 years ago)
Author:
vdorfer
Message:

Created API documentation for HeuristicLab.Operators.Metaprogramming and HeuristicLab.Logging namespace and changed a comment in HeuristicLab.Core namespace(#331)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Logging/PointXYChart.cs

    r677 r1167  
    2828
    2929namespace HeuristicLab.Logging {
     30  /// <summary>
     31  /// Class for point xy charts.
     32  /// </summary>
    3033  public class PointXYChart : ItemBase, IVisualizationItem {
    3134    private ItemList myValues;
     35    /// <summary>
     36    /// Gets or sets the values of the current instance.
     37    /// </summary>
     38    /// <remarks>Calls <see cref="OnValuesChanged"/> in the setter.</remarks>
    3239    public ItemList Values {
    3340      get { return myValues; }
     
    4148
    4249    private BoolData myConnectDots;
     50    /// <summary>
     51    /// Gets or sets the flag whether the dots should be connected or not.
     52    /// </summary>
     53    /// <remarks>Calls <see cref="OnConnectDotsChanged"/> in the setter.</remarks>
    4354    public BoolData ConnectDots {
    4455      get { return myConnectDots; }
     
    5263 
    5364         
    54    
     65    /// <summary>
     66    /// Initializes a new instance of <see cref="PointXYChart"/> with the <c>ConnectDots</c> flag set to
     67    /// <c>true</c>.
     68    /// </summary>
    5569    public PointXYChart() {
    5670      myConnectDots = new BoolData(true);
    5771    }
     72    /// <summary>
     73    /// Initializes a new instance of <see cref="PointXYChart"/> with the given <paramref name="connectDots"/>
     74    /// flag and the specified <paramref name="values"/>.
     75    /// </summary>
     76    /// <param name="connectDots">The flag whether the dots should be connected or not.</param>
     77    /// <param name="values">The values with which the current instance should be initialized.</param>
    5878    public PointXYChart(bool connectDots,ItemList values) {
    5979      myConnectDots = new BoolData(connectDots);
     
    6181    }
    6282
     83    /// <summary>
     84    /// Clones the current instance (deep clone).
     85    /// </summary>
     86    /// <remarks>Deep clone through <see cref="Auxiliary.Clone"/> method of helper class
     87    /// <see cref="Auxiliary"/>.</remarks>
     88    /// <param name="clonedObjects">Dictionary of all already clone objects. (Needed to avoid cycles.)</param>
     89    /// <returns>The cloned object as <see cref="PointXYChart"/>.</returns>
    6390    public override object Clone(IDictionary<Guid, object> clonedObjects) {
    6491      PointXYChart clone = (PointXYChart)base.Clone(clonedObjects);
     
    6794    }
    6895
     96    /// <summary>
     97    /// Creates a new instance of <see cref="PointXYChartView"/> to represent the current instance visually.
     98    /// </summary>
     99    /// <returns>The created view as <see cref="PointXYChartView"/>.</returns>
    69100    public override IView CreateView() {
    70101      return new PointXYChartView(this);
    71102    }
    72103
     104    /// <summary>
     105    /// Occurs when the values of the current instance have been changed.
     106    /// </summary>
    73107    public event EventHandler ValuesChanged;
     108    /// <summary>
     109    /// Fires a <c>ValuesChanged</c> event.
     110    /// </summary>
    74111    protected virtual void OnValuesChanged() {
    75112      if (ValuesChanged != null)
    76113        ValuesChanged(this, new EventArgs());
    77114    }
     115    /// <summary>
     116    /// Occurs when the boolean flag has been changed.
     117    /// </summary>
    78118    public event EventHandler ConnectDotsChanged;
     119    /// <summary>
     120    /// Fires a <c>ConnectDotsChanged</c> event.
     121    /// </summary>
    79122    protected virtual void OnConnectDotsChanged() {
    80123      if (ConnectDotsChanged != null)
     
    83126
    84127    #region Persistence Methods
     128    /// <summary>
     129    /// Saves the current instance as <see cref="XmlNode"/> in the specified <paramref name="document"/>.
     130    /// </summary>
     131    /// <remarks>The ConnectDots flag and the values of the current instance are saved as child nodes
     132    /// with tag names <c>ConnectDots</c> and <c>Values</c> respectively.</remarks>
     133    /// <param name="name">The (tag)name of the <see cref="XmlNode"/>.</param>
     134    /// <param name="document">The <see cref="XmlDocument"/> where to save the data.</param>
     135    /// <param name="persistedObjects">The dictionary of all already persisted objects.
     136    /// (Needed to avoid cycles.)</param>
     137    /// <returns>The saved <see cref="XmlNode"/>.</returns>
    85138    public override XmlNode GetXmlNode(string name, XmlDocument document, IDictionary<Guid, IStorable> persistedObjects) {
    86139      XmlNode node = base.GetXmlNode(name, document, persistedObjects);
     
    89142      return node;
    90143    }
     144    /// <summary>
     145    /// Loads the persisted item from the specified <paramref name="node"/>.
     146    /// </summary>
     147    /// <remarks>Has to be saved in a special way, see <see cref="GetXmlNode"/> for further information.</remarks>
     148    /// <param name="node">The <see cref="XmlNode"/> where the PointXYChart is saved.</param>
     149    /// <param name="restoredObjects">The dictionary of all already restored objects.
     150    /// (Needed to avoid cycles.)</param>
    91151    public override void Populate(XmlNode node, IDictionary<Guid, IStorable> restoredObjects) {
    92152      base.Populate(node, restoredObjects);
Note: See TracChangeset for help on using the changeset viewer.