Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/14/09 15:35:10 (15 years ago)
Author:
mkommend
Message:
  • added VisualMatrix to represent data in BubbleChart
  • made BubbleChart abstract and added inherited ModelingBubbleChart, which reacts as the BubbleChart
  • moved classes between CEDMA.Core and CEDMA.Charting
  • deleted unnecessary classes (results, resultsentry)

(ticket #723)

File:
1 edited

Legend:

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

    r2135 r2289  
    99using HeuristicLab.Core;
    1010using HeuristicLab.CEDMA.Charting;
    11 using HeuristicLab.CEDMA.Core;
    1211using HeuristicLab.PluginInfrastructure;
     12using HeuristicLab.SparseMatrix;
    1313
    1414namespace HeuristicLab.CEDMA.Charting {
    1515  public partial class BubbleChartView : ViewBase {
    16     private Results Results {
    17       get { return (Results)Item; }
    18       set { Item = value; }
    19     }
    2016    private const string CONSTANT_SIZE = "<constant>";
    2117    private Label pleaseSelectAxisLabel = new Label();
    22     public BubbleChartView(Results results) {
     18    public BubbleChartView(VisualMatrix results) {
    2319      InitializeComponent();
    24       Results = results;
    25       bubbleChartControl.Chart = new BubbleChart(Results, 0, 0, 100, 100);
    26       xAxisComboBox.Items.AddRange(Results.OrdinalVariables);
    27       xAxisComboBox.Items.AddRange(Results.CategoricalVariables);
    28       xAxisComboBox.Items.AddRange(Results.MultiDimensionalCategoricalVariables);
    29       xAxisComboBox.Items.AddRange(Results.MultiDimensionalOrdinalVariables);
    30       yAxisComboBox.Items.AddRange(Results.OrdinalVariables);
    31       yAxisComboBox.Items.AddRange(Results.CategoricalVariables);
    32       yAxisComboBox.Items.AddRange(Results.MultiDimensionalCategoricalVariables);
    33       yAxisComboBox.Items.AddRange(Results.MultiDimensionalOrdinalVariables);
     20      bubbleChartControl.Chart = new ModelingBubbleChart(results, 0, 0, 100, 100);
     21      xAxisComboBox.Items.AddRange(results.OrdinalVariables);
     22      xAxisComboBox.Items.AddRange(results.CategoricalVariables);
     23      xAxisComboBox.Items.AddRange(results.MultiDimensionalCategoricalVariables);
     24      xAxisComboBox.Items.AddRange(results.MultiDimensionalOrdinalVariables);
     25      yAxisComboBox.Items.AddRange(results.OrdinalVariables);
     26      yAxisComboBox.Items.AddRange(results.CategoricalVariables);
     27      yAxisComboBox.Items.AddRange(results.MultiDimensionalCategoricalVariables);
     28      yAxisComboBox.Items.AddRange(results.MultiDimensionalOrdinalVariables);
    3429      sizeComboBox.Items.Add(CONSTANT_SIZE);
    35       sizeComboBox.Items.AddRange(Results.OrdinalVariables);
     30      sizeComboBox.Items.AddRange(results.OrdinalVariables);
    3631      sizeComboBox.SelectedItem = sizeComboBox.Items[0];
    3732      yAxisComboBox.SelectedItem = yAxisComboBox.Items[0];
     
    6863    }
    6964
    70     public IControl CreateView(Results results) {
     65    public IControl CreateView(VisualMatrix results) {
    7166      return new BubbleChartView(results);
    7267    }
Note: See TracChangeset for help on using the changeset viewer.