Changeset 9963 for branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking.Views/3.4/GenealogyGraphChart.cs
- Timestamp:
- 09/13/13 14:42:38 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking.Views/3.4/GenealogyGraphChart.cs
r9835 r9963 111 111 if (layers[i].Rank.IsAlmost(rank)) { 112 112 var visualTextNode = new VisualGenealogyGraphTextLabel(Chart, x, y + 2, x + Diameter, y + Diameter) { 113 Brush = new SolidBrush(Color.Black),113 FontBrush = new SolidBrush(Color.Black), 114 114 Font = new Font("Arial", Diameter - 4, FontStyle.Regular, GraphicsUnit.Pixel), 115 115 Text = String.Format("{0:0}", rank) … … 154 154 } 155 155 // add arcs separately (to avoid some ordering problems) 156 foreach (SymbolicExpression GenealogyGraphNode node in Graph.Nodes) {156 foreach (SymbolicExpressionTreeGenealogyGraphNode node in Graph.Nodes) { 157 157 VisualGenealogyGraphNode visualNode = GetVisualGenealogyGraphNode(node); 158 158 if (node.InEdges == null) continue; … … 171 171 172 172 // var brush = new SolidBrush(Color.BlueViolet); 173 // visualGraphNode. Brush = brush;173 // visualGraphNode.FontBrush = brush; 174 174 // } 175 175 … … 267 267 arc.Pen.Brush = new LinearGradientBrush(start, end, source.GetColor(), target.GetColor()); 268 268 arc.Pen.Color = Color.Transparent; 269 // arc.Pen. Brush = new SolidBrush(Color.DarkGray);269 // arc.Pen.FontBrush = new SolidBrush(Color.DarkGray); 270 270 DrawLineage(nodeSelector(arc), arcSelector, nodeSelector); 271 271 } … … 300 300 } 301 301 302 public void HighlightNodes(IEnumerable<SymbolicExpression GenealogyGraphNode> nodes) {302 public void HighlightNodes(IEnumerable<SymbolicExpressionTreeGenealogyGraphNode> nodes) { 303 303 Chart.UpdateEnabled = false; 304 304 ClearAllNodes(); … … 333 333 } 334 334 335 public void HighlightNode(SymbolicExpression GenealogyGraphNode graphNode, Color color) {335 public void HighlightNode(SymbolicExpressionTreeGenealogyGraphNode graphNode, Color color) { 336 336 GetVisualGenealogyGraphNode(graphNode).Brush = new SolidBrush(color); 337 337 } … … 388 388 389 389 internal static class Util { 390 public static Color GetColor(this SymbolicExpression GenealogyGraphNode node) {390 public static Color GetColor(this SymbolicExpressionTreeGenealogyGraphNode node) { 391 391 var colorIndex = (int)(node.Quality * ColorGradient.Colors.Count); 392 392 if (colorIndex >= ColorGradient.Colors.Count) --colorIndex;
Note: See TracChangeset
for help on using the changeset viewer.