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/IDrawStyle.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: 2.3 KB
Line 
1using System.Drawing;
2using System.Drawing.Drawing2D;
3namespace Netron.Diagramming.Core {
4  /// <summary>
5  /// Defines a custom pen style to draw entities and sub-entities.
6  /// <remarks>The style can be extended with many properties and .Net 2.0 has added several new ones in comparison to .Net 1.1. Feel free to extend
7  /// as you need.</remarks>
8  /// </summary>
9  public interface IDrawStyle {
10    /// <summary>
11    /// Gets or sets the custom end cap.
12    /// </summary>
13    /// <value>The custom end cap.</value>
14    CustomLineCap CustomEndCap { get; set; }
15    /// <summary>
16    /// Gets or sets the custom start cap.
17    /// </summary>
18    /// <value>The custom start cap.</value>
19    CustomLineCap CustomStartCap { get; set; }
20    /// <summary>
21    /// Gets or sets the start cap.
22    /// </summary>
23    /// <value>The start cap.</value>
24    LineCap StartCap { get; set; }
25    /// <summary>
26    /// Gets or sets the end cap.
27    /// </summary>
28    /// <value>The end cap.</value>
29    LineCap EndCap { get; set; }
30    /// <summary>
31    /// Gets or sets the color.
32    /// </summary>
33    /// <value>The color.</value>
34    Color Color { get; set; }
35    /// <summary>
36    /// Gets or sets the dash style.
37    /// </summary>
38    /// <value>The dash style.</value>
39    DashStyle DashStyle { get; set; }
40    /// <summary>
41    /// Gets or sets the width.
42    /// </summary>
43    /// <value>The width.</value>
44    float Width { get; set; }
45    /// <summary>
46    /// Gets the drawing pen of this style.
47    /// </summary>
48    /// <returns></returns>
49    Pen DrawingPen();
50  }
51
52  /// <summary>
53  /// Describes a pen style.
54  /// </summary>
55  public interface IPenStyle : IVersion {
56    #region Properties
57
58    /// <summary>
59    /// Gets or sets the color.
60    /// </summary>
61    /// <value>The color.</value>
62    Color Color {
63      get;
64      set;
65    }
66
67    /// <summary>
68    /// Gets or sets the dash style.
69    /// </summary>
70    /// <value>The dash style.</value>
71    DashStyle DashStyle {
72      get;
73      set;
74    }
75
76    /// <summary>
77    /// Gets or sets the width.
78    /// </summary>
79    /// <value>The width.</value>
80    float Width {
81      get;
82      set;
83    }
84
85    #endregion
86
87    Pen DrawingPen();
88  }
89}
Note: See TracBrowser for help on using the repository browser.