Changeset 1167 for trunk/sources/HeuristicLab.Logging/Linechart.cs
- Timestamp:
- 01/22/09 12:06:29 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Logging/Linechart.cs
r2 r1167 28 28 29 29 namespace HeuristicLab.Logging { 30 /// <summary> 31 /// Class to represent a Linechart. 32 /// </summary> 30 33 public class Linechart : ItemBase, IVisualizationItem { 31 34 private IntData myNumberOfLines; 35 /// <summary> 36 /// Gets or sets the number of lines of the current instance. 37 /// </summary> 38 /// <remarks>Calls <see cref="OnNumberOfLinesChanged"/> in the setter.</remarks> 32 39 public int NumberOfLines { 33 40 get { return myNumberOfLines.Data; } … … 40 47 } 41 48 private ItemList myValues; 49 /// <summary> 50 /// Gets or sets the values of the current instance. 51 /// </summary> 52 /// <remarks>Calls <see cref="OnValuesChanged"/> in the setter.</remarks> 42 53 public ItemList Values { 43 54 get { return myValues; } … … 51 62 52 63 64 /// <summary> 65 /// Initializes a new instance of <see cref="Linechart"/>. 66 /// </summary> 53 67 public Linechart() { 54 68 myNumberOfLines = new IntData(0); 55 69 } 70 /// <summary> 71 /// Initializes a new instance of <see cref="Linechart"/> with the given <paramref name="numberOfLines"/> 72 /// and the given <paramref name="values"/>. 73 /// </summary> 74 /// <param name="numberOfLines">The number of lines with which to initialize the current instance.</param> 75 /// <param name="values">The values with which to initialize the current instance.</param> 56 76 public Linechart(int numberOfLines, ItemList values) { 57 77 myNumberOfLines = new IntData(numberOfLines); … … 59 79 } 60 80 61 81 /// <summary> 82 /// Clones the current instance (deep clone). 83 /// </summary> 84 /// <remarks>Deep clone through <see cref="Auxiliary.Clone"/> method of helper class 85 /// <see cref="Auxiliary"/>.</remarks> 86 /// <param name="clonedObjects">Dictionary of all already clone objects. (Needed to avoid cycles.)</param> 87 /// <returns>The cloned object as <see cref="Linechart"/>.</returns> 62 88 public override object Clone(IDictionary<Guid, object> clonedObjects) { 63 89 Linechart clone = (Linechart)base.Clone(clonedObjects); … … 67 93 } 68 94 95 /// <summary> 96 /// Creates an instance of <see cref="LinechartView"/> to represent the current instance visually. 97 /// </summary> 98 /// <returns>The created view as <see cref="LinechartView"/>.</returns> 69 99 public override IView CreateView() { 70 100 return new LinechartView(this); 71 101 } 72 102 103 /// <summary> 104 /// Occurs when the number of lines has been changed. 105 /// </summary> 73 106 public event EventHandler NumberOfLinesChanged; 107 /// <summary> 108 /// Fires a new <c>NumberOfLinesChanged</c> event. 109 /// </summary> 74 110 protected virtual void OnNumberOfLinesChanged() { 75 111 if (NumberOfLinesChanged != null) 76 112 NumberOfLinesChanged(this, new EventArgs()); 77 113 } 114 /// <summary> 115 /// Occurs when the values have been changed. 116 /// </summary> 78 117 public event EventHandler ValuesChanged; 118 /// <summary> 119 /// Fires a new <c>ValuesChanged</c> event. 120 /// </summary> 79 121 protected virtual void OnValuesChanged() { 80 122 if (ValuesChanged != null) … … 83 125 84 126 #region Persistence Methods 127 /// <summary> 128 /// Saves the current instance as <see cref="XmlNode"/> in the specified <paramref name="document"/>. 129 /// </summary> 130 /// <remarks>The number of lines and the values are saved as child nodes with tag 131 /// name <c>NumberOfLines</c> and <c>Values</c> respectively.</remarks> 132 /// <param name="name">The (tag)name of the <see cref="XmlNode"/>.</param> 133 /// <param name="document">The <see cref="XmlDocument"/> where to save the data.</param> 134 /// <param name="persistedObjects">The dictionary of all already persisted objects. 135 /// (Needed to avoid cycles.)</param> 136 /// <returns>The saved <see cref="XmlNode"/>.</returns> 85 137 public override XmlNode GetXmlNode(string name, XmlDocument document, IDictionary<Guid, IStorable> persistedObjects) { 86 138 XmlNode node = base.GetXmlNode(name, document, persistedObjects); … … 89 141 return node; 90 142 } 143 /// <summary> 144 /// Loads the persisted item from the specified <paramref name="node"/>. 145 /// </summary> 146 /// <remarks>Has to be saved in a special way, see <see cref="GetXmlNode"/> for further information.</remarks> 147 /// <param name="node">The <see cref="XmlNode"/> where the Linechart is saved.</param> 148 /// <param name="restoredObjects">The dictionary of all already restored objects. 149 /// (Needed to avoid cycles.)</param> 91 150 public override void Populate(XmlNode node, IDictionary<Guid, IStorable> restoredObjects) { 92 151 base.Populate(node, restoredObjects);
Note: See TracChangeset
for help on using the changeset viewer.