Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/02/16 15:25:14 (8 years ago)
Author:
bburlacu
Message:

#2288: Used localization when formatting strings. Add canceling in CreateTargetVariationExperimentDialog. Remove use of C# 4.6 language features.

File:
1 edited

Legend:

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

    r13727 r13821  
    4545    private Dictionary<uint, uint> idMap;
    4646    private Dictionary<IVertex, int> indexMap;
    47     public double IdealEdgeLength { get; set; } = 1;
    48     public double DefaultEdgeLength { get; set; } = 200;
    49     public bool PreventOverlaps { get; set; } = true;
    50     public int LayoutWidth { get; set; } = 800;
    51     public int LayoutHeight { get; set; } = 600;
    52     public bool PerformEdgeRouting { get; set; } = true;
    53     public int MinHorizontalSpacing { get; set; } = 0;
    54     public int MinVerticalSpacing { get; set; } = 0;
    55     public EdgeRouting EdgeRoutingMode { get; set; } = EdgeRouting.None;
     47    public double IdealEdgeLength { get; set; }
     48    public double DefaultEdgeLength { get; set; }
     49    public bool PreventOverlaps { get; set; }
     50    public int LayoutWidth { get; set; }
     51    public int LayoutHeight { get; set; }
     52    public bool PerformEdgeRouting { get; set; }
     53    public int MinHorizontalSpacing { get; set; }
     54    public int MinVerticalSpacing { get; set; }
     55    public EdgeRouting EdgeRoutingMode { get; set; }
    5656
    5757    public Dictionary<IVertex, PointF> VertexPositions {
     
    8282    }
    8383
    84     public ConstrainedForceDirectedLayout() { }
     84    public ConstrainedForceDirectedLayout() {
     85      IdealEdgeLength = 1;
     86      DefaultEdgeLength = 200;
     87      PreventOverlaps = true;
     88      LayoutWidth = 800;
     89      LayoutHeight = 600;
     90      PerformEdgeRouting = true;
     91      MinHorizontalSpacing = 0;
     92      MinVerticalSpacing = 0;
     93      EdgeRoutingMode = EdgeRouting.None;
     94    }
    8595
    8696    public void Run(Dictionary<IVertex, RectangleF> nodeShapes) {
Note: See TracChangeset for help on using the changeset viewer.