Changeset 11864 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/SymbolicDataAnalysisGenealogyGraphView.cs
- Timestamp:
- 02/02/15 17:23:33 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/SymbolicDataAnalysisGenealogyGraphView.cs
r11852 r11864 73 73 var visualNode = (VisualGenealogyGraphNode)sender; 74 74 var graphNode = (IGenealogyGraphNode<ISymbolicExpressionTree>)visualNode.Data; 75 76 nodeQualityLabel.Text = String.Format("{0:0.000}", graphNode.Quality); 77 nodeRankLabel.Text = String.Format("{0:0.0}", graphNode.Rank); 78 nodeDegreeLabel.Text = String.Format("{0} / {1}", graphNode.InDegree, graphNode.OutDegree); 75 79 76 80 if (openNew_CheckBox.Checked) { … … 169 173 var visualNode = SymbolicExpressionTreeChart.GetVisualSymbolicExpressionTreeNode(s); 170 174 visualNode.LineColor = myColor; 171 // visualNode.FillColor = myColor;172 175 173 176 foreach (var c in s.Subtrees) { … … 178 181 SymbolicExpressionTreeChart.RepaintNodes(); 179 182 } 183 184 private void navigateLeftButton_Click(object sender, EventArgs e) { 185 var graphNode = (IGenealogyGraphNode<ISymbolicExpressionTree>)genealogyGraphChart.SelectedGraphNode; 186 if (graphNode.Parents.Any()) { 187 genealogyGraphChart.SelectedGraphNode = graphNode.Parents.First(); 188 } 189 } 190 191 private void navigateRightButton_Click(object sender, EventArgs e) { 192 var graphNode = (IGenealogyGraphNode<ISymbolicExpressionTree>)genealogyGraphChart.SelectedGraphNode; 193 if (graphNode.Parents.Any()) { 194 genealogyGraphChart.SelectedGraphNode = graphNode.Parents.Last(); // this will only work for genealogy graphs (not trace graphs) 195 } 196 } 180 197 } 181 198
Note: See TracChangeset
for help on using the changeset viewer.