Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/06/16 19:39:43 (8 years ago)
Author:
bburlacu
Message:

#1772: Improve SymbolicDataAnalysisGenealogyGraphView by using a better coloring scheme for frequent subtrees. Fix bug when reaching the end of the genealogy. Minor refactorings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking.Views/3.4/GenealogyGraphChart.cs

    r13426 r13877  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    6767          return;
    6868        SelectedVisualNode = GetMappedNode(value);
    69         UpdateSelectedVisualNode();
    70       }
    71     }
    72 
     69        RedrawLineages();
     70      }
     71    }
    7372    private void Clear() {
    7473      nodeMap = new Dictionary<IGenealogyGraphNode, VisualGenealogyGraphNode>();
     
    179178        if (primitive != null && primitive != SelectedVisualNode) {
    180179          SelectedVisualNode = (VisualGenealogyGraphNode)primitive;
    181           UpdateSelectedVisualNode(); // redraw ancestries, mark node etc.
     180          RedrawLineages(); // redraw ancestries, mark node etc.
     181
     182          if (SelectedVisualNode != null)
     183            OnGenealogyGraphNodeClicked(SelectedVisualNode, null); // emit clicked event
    182184        }
    183185      }
     
    185187    }
    186188
    187     private void UpdateSelectedVisualNode() {
     189    private void RedrawLineages() {
    188190      if (!LockGenealogy) {
    189191        // new node has been selected, clean up
     
    206208      // update
    207209      ResumeRendering();
    208 
    209       if (SelectedVisualNode != null)
    210         OnGenealogyGraphNodeClicked(SelectedVisualNode, null); // emit clicked event
    211210    }
    212211    #endregion
Note: See TracChangeset for help on using the changeset viewer.