Changeset 7213 for branches/HeuristicLab.TimeSeries/HeuristicLab.Operators.Views.GraphVisualization/3.3
- Timestamp:
- 12/20/11 11:45:18 (13 years ago)
- Location:
- branches/HeuristicLab.TimeSeries
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.TimeSeries
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization/IOperatorShapeInfo.cs
r6036 r7213 27 27 bool Collapsed { get; set; } 28 28 string Title { get; set; } 29 string TypeName { get; set; } 29 30 Color Color { get; set; } 30 31 Color LineColor { get; set; } -
branches/HeuristicLab.TimeSeries/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization/OperatorShapeInfo.cs
r6036 r7213 38 38 [StorableConstructor] 39 39 protected OperatorShapeInfo(bool deserializing) : base(deserializing) { } 40 [StorableHook(HookType.AfterDeserialization)] 41 private void AfterDeserialization() { 42 if (string.IsNullOrEmpty(this.typeName)) 43 typeName = title; 44 } 40 45 protected OperatorShapeInfo(OperatorShapeInfo original, Cloner cloner) 41 46 : base(original, cloner) { … … 45 50 lineWidth = original.lineWidth; 46 51 title = original.title; 52 typeName = original.typeName; 47 53 48 54 //mkommend: necessary because cloning a Bitmap is not threadsafe … … 129 135 130 136 [Storable] 137 private string typeName; 138 public string TypeName { 139 get { return this.typeName; } 140 set { 141 if (this.typeName != value) { 142 this.typeName = value; 143 this.OnChanged(); 144 } 145 } 146 } 147 148 [Storable] 131 149 private Color color; 132 150 public Color Color { -
branches/HeuristicLab.TimeSeries/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization/OperatorShapeInfoFactory.cs
r6036 r7213 23 23 using System.Drawing; 24 24 using System.Linq; 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; 26 27 … … 37 38 operatorShapeInfo.Collapsed = true; 38 39 operatorShapeInfo.Title = op.Name; 40 operatorShapeInfo.TypeName = op.GetType().GetPrettyName(); 39 41 operatorShapeInfo.Color = Color.LightBlue; 40 42 operatorShapeInfo.LineWidth = 1;
Note: See TracChangeset
for help on using the changeset viewer.