Ignore:
Timestamp:
01/11/09 23:25:59 (12 years ago)
Author:
gkronber
Message:

worked on presentation layer for CEDMA (brushing) (#419)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CEDMA-Refactoring-Ticket419/HeuristicLab.CEDMA.Charting/BubbleChart.cs

    r1108 r1109  
    6565      entryToPrimitiveDictionary = new Dictionary<ResultsEntry, IPrimitive>();
    6666      this.results = results;
     67
     68      foreach (var resultsEntry in results.GetEntries()) {
     69        if(resultsEntry.Get(X_JITTER) ==null)
     70          resultsEntry.Set(X_JITTER, random.NextDouble() * 2.0 - 1.0);
     71        if(resultsEntry.Get(Y_JITTER) == null)
     72          resultsEntry.Set(Y_JITTER, random.NextDouble() * 2.0 - 1.0);
     73        records.Add(resultsEntry);
     74      }
     75
     76      results.Changed += new EventHandler(results_Changed);
    6777    }
    6878
     
    7585      : this(results, new PointD(x1, y1), new PointD(x2, y2)) {
    7686    }
    77 
    78     //void results_OnRecordAdded(object sender, RecordAddedEventArgs e) {
    79     //  lock(records) {
    80     //    records.Add(e.Record);
    81     //  }
    82     //}
    8387
    8488    public void SetBubbleSizeDimension(string dimension, bool inverted) {
     
    9498        this.yDimension = yDimension;
    9599
    96         foreach (var resultsEntry in results.SelectRows()) {
    97           resultsEntry.Set(X_JITTER, random.NextDouble() * 2.0 - 1.0);
    98           resultsEntry.Set(Y_JITTER, random.NextDouble() * 2.0 - 1.0);
    99           records.Add(resultsEntry);
    100         }
    101100        ResetViewSize();
    102101        Repaint();
     
    240239          }
    241240        }
    242         // results.FireChanged();
     241        if(primitives.Count() > 0) results.FireChanged();
    243242      } else {
    244243        base.MouseDrag(start, end, button);
     
    250249        ResultsEntry r = GetResultsEntry(point);
    251250        if (r != null) r.ToggleSelected();
    252         //        results.FireChanged();
     251        results.FireChanged();
    253252      } else {
    254253        base.MouseClick(point, button);
Note: See TracChangeset for help on using the changeset viewer.