Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2133 for trunk/sources


Ignore:
Timestamp:
07/03/09 18:41:00 (15 years ago)
Author:
gkronber
Message:
  • Removed commented source lines in BubbleChart
  • Only show string, double or int attributes in the tool tip (enumerations with sub-entries are hidden)

#286

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.Charting/3.3/BubbleChart.cs

    r2132 r2133  
    5959    private Results results;
    6060    private Dictionary<IPrimitive, ResultsEntry> primitiveToEntryDictionary;
    61     //private Dictionary<ResultsEntry, IList<IPrimitive>> entryToPrimitivesDictionary;
    6261    private Random random = new Random();
    6362    private Group points;
     
    6766      records = new List<ResultsEntry>();
    6867      primitiveToEntryDictionary = new Dictionary<IPrimitive, ResultsEntry>();
    69       //entryToPrimitivesDictionary = new Dictionary<ResultsEntry, IList<IPrimitive>>();
    7068      this.results = results;
    7169
     
    133131      Group.Clear();
    134132      primitiveToEntryDictionary.Clear();
    135       //entryToPrimitivesDictionary.Clear();
    136133      points = new Group(this);
    137134      Group.Add(new Axis(this, 0, 0, AxisType.Both));
     
    213210            if (!r.Selected) c.IntoBackground();
    214211            primitiveToEntryDictionary[c] = r;
    215             //if (!entryToPrimitivesDictionary.ContainsKey(r)) entryToPrimitivesDictionary[r] = new List<IPrimitive>();
    216             //entryToPrimitivesDictionary[r].Add(c);
    217212          }
    218213        }
  • trunk/sources/HeuristicLab.CEDMA.Core/3.3/ResultsEntry.cs

    r1529 r2133  
    6464      StringBuilder b = new StringBuilder();
    6565      foreach (KeyValuePair<string, object> v in values) {
    66         string val = v.Value.ToString();
    67         if (val.Length > 40) val = val.Substring(0, 38) + "...";
    68         b.Append(v.Key).Append(" = ").Append(val).AppendLine();
     66        if (v.Value is string || v.Value is double || v.Value is int) {
     67          string val = v.Value.ToString();
     68          if (val.Length > 40) val = val.Substring(0, 38) + "...";
     69          b.Append(v.Key).Append(" = ").Append(val).AppendLine();
     70        }
    6971      }
    7072      return b.ToString();
Note: See TracChangeset for help on using the changeset viewer.