- Timestamp:
- 08/14/09 15:35:10 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CEDMA.Charting/3.3/BubbleChartView.cs
r2135 r2289 9 9 using HeuristicLab.Core; 10 10 using HeuristicLab.CEDMA.Charting; 11 using HeuristicLab.CEDMA.Core;12 11 using HeuristicLab.PluginInfrastructure; 12 using HeuristicLab.SparseMatrix; 13 13 14 14 namespace HeuristicLab.CEDMA.Charting { 15 15 public partial class BubbleChartView : ViewBase { 16 private Results Results {17 get { return (Results)Item; }18 set { Item = value; }19 }20 16 private const string CONSTANT_SIZE = "<constant>"; 21 17 private Label pleaseSelectAxisLabel = new Label(); 22 public BubbleChartView( Resultsresults) {18 public BubbleChartView(VisualMatrix results) { 23 19 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); 34 29 sizeComboBox.Items.Add(CONSTANT_SIZE); 35 sizeComboBox.Items.AddRange( Results.OrdinalVariables);30 sizeComboBox.Items.AddRange(results.OrdinalVariables); 36 31 sizeComboBox.SelectedItem = sizeComboBox.Items[0]; 37 32 yAxisComboBox.SelectedItem = yAxisComboBox.Items[0]; … … 68 63 } 69 64 70 public IControl CreateView( Resultsresults) {65 public IControl CreateView(VisualMatrix results) { 71 66 return new BubbleChartView(results); 72 67 }
Note: See TracChangeset
for help on using the changeset viewer.