Changeset 13799 for branches/OptimizationNetworks/HeuristicLab.Networks.Views.NetworkVisualization/3.3/NodeVisualProperties.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/NodeVisualProperties.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 lowerLeft = original.lowerLeft; 57 80 upperRight = original.upperRight; 81 brushColor = original.brushColor; 82 penColor = original.penColor; 58 83 } 59 84 60 public NodeVisualProperties(Point2D<double> lowerLeft, Point2D<double> upperRight) { 61 this.lowerLeft = lowerLeft; 62 this.upperRight = upperRight; 85 public NodeVisualProperties() { 86 lowerLeft = new Point2D<double>(0.0, 0.0); 87 upperRight = new Point2D<double>(200.0, 100.0); 88 brushColor = Color.FromArgb(255, 120, 200, 240); 89 penColor = Color.Black; 63 90 } 64 91
Note: See TracChangeset
for help on using the changeset viewer.