Changeset 1167 for trunk/sources/HeuristicLab.Logging/PointXYChart.cs
- Timestamp:
- 01/22/09 12:06:29 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Logging/PointXYChart.cs
r677 r1167 28 28 29 29 namespace HeuristicLab.Logging { 30 /// <summary> 31 /// Class for point xy charts. 32 /// </summary> 30 33 public class PointXYChart : ItemBase, IVisualizationItem { 31 34 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> 32 39 public ItemList Values { 33 40 get { return myValues; } … … 41 48 42 49 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> 43 54 public BoolData ConnectDots { 44 55 get { return myConnectDots; } … … 52 63 53 64 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> 55 69 public PointXYChart() { 56 70 myConnectDots = new BoolData(true); 57 71 } 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> 58 78 public PointXYChart(bool connectDots,ItemList values) { 59 79 myConnectDots = new BoolData(connectDots); … … 61 81 } 62 82 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> 63 90 public override object Clone(IDictionary<Guid, object> clonedObjects) { 64 91 PointXYChart clone = (PointXYChart)base.Clone(clonedObjects); … … 67 94 } 68 95 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> 69 100 public override IView CreateView() { 70 101 return new PointXYChartView(this); 71 102 } 72 103 104 /// <summary> 105 /// Occurs when the values of the current instance have been changed. 106 /// </summary> 73 107 public event EventHandler ValuesChanged; 108 /// <summary> 109 /// Fires a <c>ValuesChanged</c> event. 110 /// </summary> 74 111 protected virtual void OnValuesChanged() { 75 112 if (ValuesChanged != null) 76 113 ValuesChanged(this, new EventArgs()); 77 114 } 115 /// <summary> 116 /// Occurs when the boolean flag has been changed. 117 /// </summary> 78 118 public event EventHandler ConnectDotsChanged; 119 /// <summary> 120 /// Fires a <c>ConnectDotsChanged</c> event. 121 /// </summary> 79 122 protected virtual void OnConnectDotsChanged() { 80 123 if (ConnectDotsChanged != null) … … 83 126 84 127 #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> 85 138 public override XmlNode GetXmlNode(string name, XmlDocument document, IDictionary<Guid, IStorable> persistedObjects) { 86 139 XmlNode node = base.GetXmlNode(name, document, persistedObjects); … … 89 142 return node; 90 143 } 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> 91 151 public override void Populate(XmlNode node, IDictionary<Guid, IStorable> restoredObjects) { 92 152 base.Populate(node, restoredObjects);
Note: See TracChangeset
for help on using the changeset viewer.