Changeset 4068 for trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Core/Interfaces/IDrawStyle.cs
- Timestamp:
- 07/22/10 00:44:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Core/Interfaces/IDrawStyle.cs
r2768 r4068 1 using System;2 using System.Collections.Generic;3 using System.Text;4 1 using System.Drawing; 5 2 using System.Drawing.Drawing2D; 6 namespace Netron.Diagramming.Core 7 { 3 namespace 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 { 8 10 /// <summary> 9 /// Defines a custom pen style to draw entities and sub-entities. 10 /// <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 11 /// as you need.</remarks> 11 /// Gets or sets the custom end cap. 12 12 /// </summary> 13 public interface IDrawStyle 14 { 15 /// <summary> 16 /// Gets or sets the custom end cap. 17 /// </summary> 18 /// <value>The custom end cap.</value> 19 CustomLineCap CustomEndCap { get; set; } 20 /// <summary> 21 /// Gets or sets the custom start cap. 22 /// </summary> 23 /// <value>The custom start cap.</value> 24 CustomLineCap CustomStartCap { get; set; } 25 /// <summary> 26 /// Gets or sets the start cap. 27 /// </summary> 28 /// <value>The start cap.</value> 29 LineCap StartCap { get; set; } 30 /// <summary> 31 /// Gets or sets the end cap. 32 /// </summary> 33 /// <value>The end cap.</value> 34 LineCap EndCap { get; set; } 35 /// <summary> 36 /// Gets or sets the color. 37 /// </summary> 38 /// <value>The color.</value> 39 Color Color { get; set; } 40 /// <summary> 41 /// Gets or sets the dash style. 42 /// </summary> 43 /// <value>The dash style.</value> 44 DashStyle DashStyle { get; set; } 45 /// <summary> 46 /// Gets or sets the width. 47 /// </summary> 48 /// <value>The width.</value> 49 float Width { get; set; } 50 /// <summary> 51 /// Gets the drawing pen of this style. 52 /// </summary> 53 /// <returns></returns> 54 Pen DrawingPen(); 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; 55 65 } 56 66 57 67 /// <summary> 58 /// Describes a penstyle.68 /// Gets or sets the dash style. 59 69 /// </summary> 60 public interface IPenStyle : IVersion 61 { 62 #region Properties 70 /// <value>The dash style.</value> 71 DashStyle DashStyle { 72 get; 73 set; 74 } 63 75 64 /// <summary> 65 /// Gets or sets the color. 66 /// </summary> 67 /// <value>The color.</value> 68 Color Color 69 { 70 get; 71 set; 72 } 76 /// <summary> 77 /// Gets or sets the width. 78 /// </summary> 79 /// <value>The width.</value> 80 float Width { 81 get; 82 set; 83 } 73 84 74 /// <summary> 75 /// Gets or sets the dash style. 76 /// </summary> 77 /// <value>The dash style.</value> 78 DashStyle DashStyle 79 { 80 get; 81 set; 82 } 85 #endregion 83 86 84 /// <summary> 85 /// Gets or sets the width. 86 /// </summary> 87 /// <value>The width.</value> 88 float Width 89 { 90 get; 91 set; 92 } 93 94 #endregion 95 96 Pen DrawingPen(); 97 } 87 Pen DrawingPen(); 88 } 98 89 }
Note: See TracChangeset
for help on using the changeset viewer.