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/IShape.cs @ 4068

Last change on this file since 4068 was 4068, checked in by swagner, 14 years ago

Sorted usings and removed unused usings in entire solution (#1094)

File size: 3.3 KB
Line 
1using System.Drawing;
2namespace Netron.Diagramming.Core {
3  // ----------------------------------------------------------------------
4  /// <summary>
5  /// The interface of a shape. This interface comes in two inherited
6  /// flavors; <see cref="ISimpleShape"/> and <see cref="IComplexShape"/>.
7  /// </summary>
8  // ----------------------------------------------------------------------
9  public interface IShape : IDiagramEntity {
10    #region Events
11
12    #endregion
13
14    #region Properties
15
16    // ------------------------------------------------------------------
17    /// <summary>
18    /// Gets or sets if the connectors are drawn.
19    /// </summary>
20    // ------------------------------------------------------------------
21    bool ShowConnectors {
22      get;
23      set;
24    }
25
26    // ------------------------------------------------------------------
27    /// <summary>
28    /// Gets the connectors of the shape.
29    /// </summary>
30    /// <remarks>Connectors are defined at design time, hence the fact
31    /// that you cannot set the connector collection.</remarks>
32    // ------------------------------------------------------------------
33    CollectionBase<IConnector> Connectors { get; }
34
35    // ------------------------------------------------------------------
36    /// <summary>
37    /// Gets or sets the location of the shape
38    /// </summary>
39    // ------------------------------------------------------------------
40    Point Location { get; set; }
41
42    // ------------------------------------------------------------------
43    /// <summary>
44    /// Gets or sets the height of the shape
45    /// </summary>
46    // ------------------------------------------------------------------
47    int Height { get; set; }
48
49    // ------------------------------------------------------------------
50    /// <summary>
51    /// Gets or sets the width of the shape.
52    /// </summary>
53    // ------------------------------------------------------------------
54    int Width { get; set; }
55
56    // ------------------------------------------------------------------
57    /// <summary>
58    /// Gets the image for this shape when displaying in a library (i.e.
59    /// toolbox).
60    /// </summary>
61    // ------------------------------------------------------------------
62    Image LibraryImage {
63      get;
64    }
65
66    #endregion
67
68    #region Methods
69    // ------------------------------------------------------------------
70    /// <summary>
71    /// Returns whether the given point hits one of the connectors of
72    /// the bundle.
73    /// </summary>
74    /// <param name="p">a location, usually corresponds to the mouse
75    /// location.</param>
76    /// <returns></returns>
77    // ------------------------------------------------------------------
78    IConnector HitConnector(Point p);
79
80    // ------------------------------------------------------------------
81    /// <summary>
82    /// Maps the shape to another rectangle, including all its sub-entities
83    /// and materials.
84    /// </summary>
85    /// <param name="x">The x.</param>
86    /// <param name="y">The y.</param>
87    /// <param name="width">The width.</param>
88    /// <param name="height">The height.</param>
89    // ------------------------------------------------------------------
90    void Transform(int x, int y, int width, int height);
91    #endregion
92  }
93}
Note: See TracBrowser for help on using the repository browser.