Changeset 4068 for trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Core/Interfaces/ILayer.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/ILayer.cs
r2768 r4068 1 1 using System; 2 using System.Collections.Generic;3 using System.Text;4 2 5 namespace Netron.Diagramming.Core 6 { 7 // ---------------------------------------------------------------------- 3 namespace Netron.Diagramming.Core { 4 // ---------------------------------------------------------------------- 5 /// <summary> 6 /// Interface of a diagram layer 7 /// </summary> 8 // ---------------------------------------------------------------------- 9 public interface ILayer { 10 #region Events 11 12 // ------------------------------------------------------------------ 8 13 /// <summary> 9 /// Interface of a diagram layer14 /// Occurs when an entity is added to the layer. 10 15 /// </summary> 11 // ---------------------------------------------------------------------- 12 public interface ILayer 13 { 14 #region Events 16 // ------------------------------------------------------------------ 17 event EventHandler<EntityEventArgs> OnEntityAdded; 15 18 16 17 18 /// Occurs when an entity is added tothe layer.19 20 21 event EventHandler<EntityEventArgs> OnEntityAdded;19 // ------------------------------------------------------------------ 20 /// <summary> 21 /// Occurs when an entity is removed from the layer. 22 /// </summary> 23 // ------------------------------------------------------------------ 24 event EventHandler<EntityEventArgs> OnEntityRemoved; 22 25 23 24 25 /// Occurs when an entity is removed from the layer.26 27 28 event EventHandler<EntityEventArgs> OnEntityRemoved;26 // ------------------------------------------------------------------ 27 /// <summary> 28 /// Occurs when the layer is cleared. 29 /// </summary> 30 // ------------------------------------------------------------------ 31 event EventHandler OnClear; 29 32 30 // ------------------------------------------------------------------ 31 /// <summary> 32 /// Occurs when the layer is cleared. 33 /// </summary> 34 // ------------------------------------------------------------------ 35 event EventHandler OnClear; 33 #endregion 36 34 37 #endregion35 #region Properties 38 36 39 #region Properties 37 // ------------------------------------------------------------------ 38 /// <summary> 39 /// Gets all connections in this layer. 40 /// </summary> 41 // ------------------------------------------------------------------ 42 CollectionBase<IConnection> Connections { get; } 40 43 41 42 43 /// Gets all connections in this layer.44 45 46 CollectionBase<IConnection> Connections { get;}44 // ------------------------------------------------------------------ 45 /// <summary> 46 /// Gets all shapes in this layer. 47 /// </summary> 48 // ------------------------------------------------------------------ 49 CollectionBase<IShape> Shapes { get; } 47 50 48 // ------------------------------------------------------------------ 49 /// <summary> 50 /// Gets all shapes in this layer. 51 /// </summary> 52 // ------------------------------------------------------------------ 53 CollectionBase<IShape> Shapes { get;} 51 // ------------------------------------------------------------------ 52 /// <summary> 53 /// Gets or sets the model. 54 /// </summary> 55 /// <value>The model.</value> 56 // ------------------------------------------------------------------ 57 IModel Model { get; set; } 54 58 55 // ------------------------------------------------------------------ 56 /// <summary> 57 /// Gets or sets the model. 58 /// </summary> 59 /// <value>The model.</value> 60 // ------------------------------------------------------------------ 61 IModel Model { get;set;} 59 // ------------------------------------------------------------------ 60 /// <summary> 61 /// Gets or sets if this layer is visible. 62 /// </summary> 63 // ------------------------------------------------------------------ 64 bool IsVisible { get; set; } 62 65 63 64 65 /// Gets or sets if this layer is visible.66 67 68 bool IsVisible { get; set;}66 // ------------------------------------------------------------------ 67 /// <summary> 68 /// Gets or sets the name of this layer. 69 /// </summary> 70 // ------------------------------------------------------------------ 71 string Name { get; set; } 69 72 70 // ------------------------------------------------------------------ 71 /// <summary> 72 /// Gets or sets the name of this layer. 73 /// </summary> 74 // ------------------------------------------------------------------ 75 string Name { get; set; } 73 #endregion 76 74 77 #endregion 78 79 // ------------------------------------------------------------------ 80 /// <summary> 81 /// Gets the entities of this layer. 82 /// </summary> 83 /// <value>The entities.</value> 84 // ------------------------------------------------------------------ 85 CollectionBase<IDiagramEntity> Entities { get;} 86 } 75 // ------------------------------------------------------------------ 76 /// <summary> 77 /// Gets the entities of this layer. 78 /// </summary> 79 /// <value>The entities.</value> 80 // ------------------------------------------------------------------ 81 CollectionBase<IDiagramEntity> Entities { get; } 82 } 87 83 }
Note: See TracChangeset
for help on using the changeset viewer.