Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/17/17 13:13:04 (5 years ago)
Author:
bburlacu
Message:

#2288: Sync with trunk + Minor refactor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.VariableInteractionNetworks/HeuristicLab.VariableInteractionNetworks.Views/3.3/DirectedGraphChart.cs

    r14275 r15421  
    2626using System.Linq;
    2727using System.Windows.Forms;
    28 using HeuristicLab.Common;
    2928using HeuristicLab.Core;
    3029using HeuristicLab.Random;
     
    158157        shape.Move(new Offset(pos.X, pos.Y));
    159158      }
    160       var colors = ColorGradient.GrayscaledColors;
     159
    161160      foreach (var pair in arcRoutes) {
    162161        var arc = pair.Key;
     
    167166        Pen pen;
    168167        var penWidth = weight / max * 3;
    169         var colorIndex = (int)Math.Min(255, weight / max * 255);
    170         if (colorIndex < 0) colorIndex = 0;
    171         if (colorIndex > 255) colorIndex = 255;
    172         var penColor = colors[colorIndex];
     168        var penColor = Color.Black;
    173169        if (len == 2) {
    174170          if (double.IsInfinity(penWidth) || double.IsNaN(penWidth))
Note: See TracChangeset for help on using the changeset viewer.