Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/06/14 15:07:05 (10 years ago)
Author:
bburlacu
Message:

#2076: Updated the way the layout is used in the SymbolicExpressionTreeChart; updated simplifier view accordingly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionGrammarAllowedChildSymbolsControl.cs

    r10520 r10561  
    105105
    106106      var tree = new SymbolicExpressionTree(new SymbolicExpressionTreeNode(Symbol));
    107       symbolicExpressionTreeChart.SuspendRepaint = true;
    108107      if (Grammar.GetMaximumSubtreeCount(Symbol) > 0) {
    109108        for (int i = 0; i < Grammar.GetMaximumSubtreeCount(Symbol); i++) {
     
    118117      }
    119118      symbolicExpressionTreeChart.Tree = tree;
    120 
     119      symbolicExpressionTreeChart.SuspendRepaint = true;
    121120      foreach (var subtreeNode in tree.Root.Subtrees) {
    122121        foreach (var allowedChildNode in subtreeNode.Subtrees) {
     
    144143        }
    145144      }
    146 
    147145      symbolicExpressionTreeChart.SuspendRepaint = false;
    148146      UpdateSelectedSymbolicExpressionTreeNodes();
     
    155153        else visualNode.FillColor = Color.LightSteelBlue;
    156154      }
    157       symbolicExpressionTreeChart.Repaint();
     155      symbolicExpressionTreeChart.RepaintNodes();
    158156    }
    159157
Note: See TracChangeset for help on using the changeset viewer.