Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/24/16 20:37:12 (8 years ago)
Author:
bburlacu
Message:

#2288:

  • Refactor RunCollectionVariableInteractionNetworkView improving functionality, modularity and code organisation.
  • Small tweaks to the DirectedGraphChart and DirectedGraphChartMode
File:
1 edited

Legend:

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

    r13727 r13789  
    2525using HeuristicLab.Core;
    2626using HeuristicLab.MainForm;
    27 using HeuristicLab.Problems.DataAnalysis;
    2827using HeuristicLab.Visualization;
    2928
     
    5655                }
    5756              }
    58             } finally { chartControl.ResumeRendering(); }
     57            }
     58            finally { chartControl.ResumeRendering(); }
    5959            break;
    6060        }
    61       } finally {
     61      }
     62      finally {
    6263        base.HandleOnMouseDown(sender, e);
    6364      }
     
    6768      try {
    6869        switch (e.Button) {
    69           case MouseButtons.None:
    70             try {
    71               chartControl.SuspendRendering();
    72               var sp = chartControl.Chart.GetPrimitive(e.Location);
    73               if (sp is RectangularPrimitiveBase) {
    74                 var vertex = Control.GetVertex(sp) as IVertex<IDeepCloneable>;
    75                 var junctionNode = vertex as JunctionNetworkNode;
    76                 if (junctionNode != null) {
    77                   var solution = vertex.Data as IRegressionSolution;
    78                   if (solution != null) {
    79                     var toolTip = string.Format("Target: {0}\nQuality: {1}", solution.ProblemData.TargetVariable, solution.TrainingRSquared);
    80                     Control.ToolTip.SetToolTip(Control, toolTip);
    81                   }
    82                 }
    83               }
    84             } finally { chartControl.ResumeRendering(); }
    85             break;
    8670          case MouseButtons.Left:
    8771            var previousWorldLocation = chartControl.Chart.TransformPixelToWorld(previousLocation);
     
    119103                }
    120104              }
    121             } finally { chartControl.ResumeRendering(); }
     105            }
     106            finally { chartControl.ResumeRendering(); }
    122107            break;
    123108        }
    124       } finally {
    125         chartControl.UpdatePicture();
     109      }
     110      finally {
    126111        base.HandleOnMouseMove(sender, e);
    127112      }
Note: See TracChangeset for help on using the changeset viewer.