Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/IO/NML/GraphType.cs @ 2769

Last change on this file since 2769 was 2769, checked in by mkommend, 14 years ago

added unused files for netron (ticket #867)

File size: 1.5 KB
Line 
1
2    using System;
3    using System.Xml;
4    using System.Xml.Serialization;
5    using System.IO;
6   
7   
8namespace Netron.GraphLib.IO.NML
9{   
10   
11   /// <summary>
12   /// XML wrapper for a graph
13   /// </summary>
14    [XmlRoot(ElementName="Graph", IsNullable=false, DataType="")]
15    public class GraphType {
16    #region Fields
17    /// <summary>
18    /// the items
19    /// </summary>
20        private DataCollection mItems = new DataCollection();   
21
22    private GraphInformationType mGraphInformation;
23    #endregion
24
25    #region Properties
26    /// <summary>
27    /// Gets or sets the graph-info of the graph
28    /// </summary>
29    [XmlElement(ElementName="GraphInformation", Type=typeof(GraphInformationType))]
30    public GraphInformationType GraphInformation
31    {
32      get{return mGraphInformation;}
33      set{mGraphInformation = value;}
34    }
35       
36        /// <summary>
37        /// Gets or sets the item collection
38        /// </summary>
39        [XmlElement(ElementName="locator", Type=typeof(LocatorType))]
40        [XmlElement(ElementName="Connection", Type=typeof(ConnectionType))]
41        [XmlElement(ElementName="Shape", Type=typeof(ShapeType))]
42        [XmlElement(ElementName="data", Type=typeof(DataType))]   
43    public virtual DataCollection Items {
44            get {
45                return this.mItems;
46            }
47            set {
48                this.mItems = value;
49            }
50        }
51 
52    #endregion
53
54    #region Constructor
55    /// <summary>
56    /// Constructor
57    /// </summary>
58    public GraphType()
59    {}
60    #endregion
61
62    }
63}
Note: See TracBrowser for help on using the repository browser.