- Timestamp:
- 03/05/10 13:08:50 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/Model
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/Model/GraphVisualizationInfo.cs
r2934 r2935 202 202 } 203 203 204 private void OperatorBreakpointChanged(object sender, EventArgs e) { 205 IOperator op = (IOperator)sender; 206 IOperatorShapeInfo operatorShapeInfo = this.operatorShapeInfoMapping.GetByFirst(op); 207 if (op.Breakpoint) { 208 operatorShapeInfo.LineColor = Color.Red; 209 operatorShapeInfo.LineWidth = 2; 210 } else { 211 operatorShapeInfo.LineColor = Color.Black; 212 operatorShapeInfo.LineWidth = 1; 213 } 214 } 215 204 216 private void OperatorNameChanged(object sender, EventArgs e) { 205 217 IOperator op = (IOperator)sender; … … 229 241 op.Parameters.CollectionReset += new CollectionItemsChangedEventHandler<IParameter>(Parameters_CollectionReset); 230 242 op.NameChanged += new EventHandler(OperatorNameChanged); 243 op.BreakpointChanged += new EventHandler(OperatorBreakpointChanged); 231 244 } 232 245 … … 237 250 op.Parameters.CollectionReset -= new CollectionItemsChangedEventHandler<IParameter>(Parameters_CollectionReset); 238 251 op.NameChanged -= new EventHandler(OperatorNameChanged); 252 op.BreakpointChanged -= new EventHandler(OperatorBreakpointChanged); 239 253 } 240 254 #endregion -
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/Model/IOperatorShapeInfo.cs
r2934 r2935 31 31 string Title { get; set; } 32 32 Color Color { get; set; } 33 Color LineColor { get; set; } 34 float LineWidth { get; set; } 33 35 Bitmap Icon { get; set; } 34 36 -
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/Model/OperatorShape.cs
r2934 r2935 29 29 using HeuristicLab.Netron; 30 30 31 31 32 namespace HeuristicLab.Operators.Views.GraphVisualization { 32 33 public class OperatorShape : ComplexShapeBase { … … 54 55 this.expandIconMaterial.Collapsed = value; 55 56 } 57 } 58 59 private Color lineColor; 60 public Color LineColor { 61 get { return this.lineColor; } 62 set { this.lineColor = value; } 63 } 64 65 private float lineWidth; 66 public float LineWidth { 67 get { return this.lineWidth; } 68 set { this.lineWidth = value; } 56 69 } 57 70 … … 205 218 g.SmoothingMode = SmoothingMode.HighQuality; 206 219 207 Pen pen; 208 if (Hovered) 209 pen = ArtPalette.HighlightPen; 210 else 211 pen = mPenStyle.DrawingPen(); 220 Pen pen = new Pen(lineColor,lineWidth); 212 221 213 222 GraphicsPath path = new GraphicsPath(); -
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/Model/OperatorShapeInfo.cs
r2934 r2935 111 111 112 112 [Storable] 113 private Color lineColor; 114 public Color LineColor { 115 get { return this.lineColor; } 116 set { 117 if (this.lineColor != value) { 118 this.lineColor = value; 119 this.OnChanged(); 120 } 121 } 122 } 123 124 [Storable] 125 private float lineWidth; 126 public float LineWidth { 127 get { return this.lineWidth; } 128 set { 129 if (this.lineWidth != value) { 130 this.lineWidth = value; 131 this.OnChanged(); 132 } 133 } 134 } 135 136 [Storable] 113 137 private Bitmap icon; 114 138 public Bitmap Icon { … … 126 150 shape.Title = this.Title; 127 151 shape.Color = this.Color; 152 shape.LineColor = this.LineColor; 153 shape.LineWidth = this.LineWidth; 128 154 shape.Icon = this.Icon; 129 155 shape.Collapsed = this.Collapsed; … … 141 167 operatorShape.Title = this.Title; 142 168 operatorShape.Color = this.Color; 169 operatorShape.LineColor = this.LineColor; 170 operatorShape.LineWidth = this.LineWidth; 143 171 operatorShape.Collapsed = this.Collapsed; 144 172 -
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/Model/ShapeInfoFactory.cs
r2934 r2935 46 46 operatorShapeInfo.Title = op.Name; 47 47 operatorShapeInfo.Color = Color.LightBlue; 48 operatorShapeInfo.LineWidth = 1; 49 operatorShapeInfo.LineColor = Color.Black; 48 50 operatorShapeInfo.Icon = new Bitmap(op.ItemImage); 49 51
Note: See TracChangeset
for help on using the changeset viewer.