Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/07/14 17:05:31 (11 years ago)
Author:
bburlacu
Message:

#1772: Improved aspect of visual components of the FragmentGraphView.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/FragmentGraphView.cs

    r10685 r10728  
    5454
    5555      var fragmentRoot = tileDictionary[root];
     56      int maxTileWidth = 0, maxTileHeight = 0;
     57      foreach (var tile in Content.Nodes.Select(x => tileDictionary[x].Tile)) {
     58        var size = tile.Size;
     59        if (maxTileWidth < size.Width) maxTileWidth = size.Width;
     60        if (maxTileHeight < size.Height) maxTileHeight = size.Height;
     61      }
     62      layoutEngine.NodeWidth = maxTileWidth;
     63      layoutEngine.NodeHeight = maxTileHeight;
     64      layoutEngine.HorizontalSpacing = PreferredSpacing;
     65      layoutEngine.VerticalSpacing = PreferredSpacing;
     66
    5667      var visualNodes = layoutEngine.CalculateLayout(fragmentRoot);
    5768
     
    6273        symbolicExpressionChartControl.Add(tile);
    6374      }
     75      //      symbolicExpressionChartControl.FlipVertical();
    6476      symbolicExpressionChartControl.UpdateEnabled = true;
    6577      symbolicExpressionChartControl.EnforceUpdate();
Note: See TracChangeset for help on using the changeset viewer.