Changeset 13799 for branches/OptimizationNetworks/HeuristicLab.Networks.Views.NetworkVisualization/3.3/PortVisualProperties.cs
- Timestamp:
- 04/26/16 15:05:28 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OptimizationNetworks/HeuristicLab.Networks.Views.NetworkVisualization/3.3/PortVisualProperties.cs
r13135 r13799 20 20 #endregion 21 21 22 using System.Drawing; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core.Networks; … … 49 50 } 50 51 52 [Storable] 53 private Color brushColor; 54 public Color BrushColor { 55 get { return brushColor; } 56 set { 57 if (brushColor == value) return; 58 brushColor = value; 59 OnChanged(); 60 } 61 } 62 63 [Storable] 64 private Color penColor; 65 public Color PenColor { 66 get { return penColor; } 67 set { 68 if (penColor == value) return; 69 penColor = value; 70 OnChanged(); 71 } 72 } 73 51 74 #region Constructors & Cloning 52 75 [StorableConstructor] … … 56 79 orientation = original.orientation; 57 80 offset = original.offset; 81 brushColor = original.brushColor; 82 penColor = original.penColor; 58 83 } 59 84 60 public PortVisualProperties(Orientation orientation, double offset) { 61 this.orientation = orientation; 62 this.offset = offset; 85 public PortVisualProperties() { 86 orientation = Orientation.South; 87 offset = 0.5; 88 brushColor = Color.RosyBrown; 89 penColor = Color.Black; 63 90 } 64 91
Note: See TracChangeset
for help on using the changeset viewer.