Changeset 10520 for trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/LayoutEngines/LayoutNode.cs
- Timestamp:
- 02/28/14 11:56:15 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/LayoutEngines
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/LayoutEngines/LayoutNode.cs
r10471 r10520 24 24 using System.Linq; 25 25 26 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 27 public class LayoutNode<T> where T : class { 26 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views { 27 public class LayoutNode<T> : object where T : class { 28 public float Width { get; set; } 29 public float Height { get; set; } 30 28 31 public LayoutNode<T> NextLeft { 29 32 get { … … 75 78 } 76 79 } 80 /// <summary> 81 /// Translate the position of the layout node according to the given offsets 82 /// </summary> 83 /// <param name="dx"></param> 84 /// <param name="dy"></param> 85 public void Translate(float dx, float dy) { 86 X += dx; 87 Y += dy; 88 } 89 90 public void ResetCoordinates() { 91 X = 0; 92 Y = 0; 93 } 94 95 /// <summary> 96 /// Reset layout-related parameters 97 /// </summary> 98 public void Reset() { 99 Ancestor = this; 100 Thread = null; 101 Change = 0; 102 Shift = 0; 103 Prelim = 0; 104 Mod = 0; 105 ResetCoordinates(); 106 } 77 107 } 78 108 }
Note: See TracChangeset
for help on using the changeset viewer.