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/Core/Interfaces/IConnector.cs @ 2768

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

added solution folders and sources for the netron library (ticket #867)

File size: 1.5 KB
Line 
1using System;
2using System.Drawing;
3namespace Netron.Diagramming.Core
4{
5  /// <summary>
6  /// This interface describes the public members of a connector
7  /// </summary>
8  public interface IConnector : IDiagramEntity
9  {
10    #region Properties
11    /// <summary>
12    /// Gets the point at which the connector is located
13    /// </summary>
14    Point Point {get; set;}
15    /// <summary>
16    /// Gets or sets the connector to which this connector is attached to
17    /// </summary>
18    IConnector AttachedTo {get; set;}
19    /// <summary>
20    /// Gets the connectors (if any) attached to this connector
21    /// </summary>
22    CollectionBase<IConnector> AttachedConnectors {get;}
23    #endregion
24
25    #region Methods
26        /// <summary>
27        /// Attaches the given connector to this one
28        /// </summary>
29        /// <param name="child">The child connector to attach.</param>   
30    void AttachConnector(IConnector child);
31
32        /// <summary>
33        /// Detaches the given connector from this connector.
34        /// </summary>
35        /// <param name="child">The child connector to detach.</param>       
36        void DetachConnector(IConnector child);
37
38        /// <summary>
39        /// Detaches from its parent (if any).
40        /// </summary>
41        void DetachFromParent();
42
43        /// <summary>
44        /// Attaches to another connector
45        /// </summary>
46        /// <param name="parent">The new parent connector.</param>       
47        void AttachTo(IConnector parent);
48    #endregion
49  }
50}
Note: See TracBrowser for help on using the repository browser.