Changeset 5994 for branches/histogram
- Timestamp:
- 04/09/11 00:15:33 (14 years ago)
- Location:
- branches/histogram
- Files:
-
- 6 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/histogram/HeuristicLab.Analysis.Views/3.3/HeuristicLab.Analysis.Views-3.3.csproj
r5961 r5994 124 124 <DependentUpon>AlleleFrequencyCollectionView.cs</DependentUpon> 125 125 </Compile> 126 <Compile Include="AggregatedHistogramHistoryView.cs"> 127 <SubType>UserControl</SubType> 128 </Compile> 129 <Compile Include="AggregatedHistogramHistoryView.Designer.cs"> 130 <DependentUpon>AggregatedHistogramHistoryView.cs</DependentUpon> 131 </Compile> 132 <Compile Include="HistogramHistoryView.cs"> 133 <SubType>UserControl</SubType> 134 </Compile> 135 <Compile Include="HistogramHistoryView.Designer.cs"> 136 <DependentUpon>HistogramHistoryView.cs</DependentUpon> 137 </Compile> 126 138 <Compile Include="HeatMapHistoryView.cs"> 127 139 <SubType>UserControl</SubType> … … 237 249 </ItemGroup> 238 250 <ItemGroup> 251 <EmbeddedResource Include="AggregatedHistogramHistoryView.resx"> 252 <DependentUpon>AggregatedHistogramHistoryView.cs</DependentUpon> 253 </EmbeddedResource> 239 254 <EmbeddedResource Include="HeatMapView.resx"> 240 255 <DependentUpon>HeatMapView.cs</DependentUpon> -
branches/histogram/HeuristicLab.Analysis.Views/3.3/HistogramView.cs
r5970 r5994 29 29 [View("Histogram View")] 30 30 [Content(typeof(Histogram), IsDefaultView = true)] 31 public sealedpartial class HistogramView : NamedItemView {31 public partial class HistogramView : NamedItemView { 32 32 33 33 public new Histogram Content { … … 70 70 protected override void OnContentChanged() { 71 71 base.OnContentChanged(); 72 if (Content == null) { 73 histogramControl.ClearPoints(); 74 } else { 72 histogramControl.ClearPoints(); 73 if (Content != null) { 75 74 histogramControl.AddPoints(Content.Values); 76 75 } -
branches/histogram/HeuristicLab.Analysis/3.3/DataVisualization/Histogram.cs
r5961 r5994 52 52 values = new ObservableCollection<double>(); 53 53 } 54 public Histogram(string name) 55 : base(name) { 56 values = new ObservableCollection<double>(); 57 } 58 public Histogram(string name, string description) 59 : base(description) { 60 values = new ObservableCollection<double>(); 61 } 54 62 55 63 public override IDeepCloneable Clone(Cloner cloner) { -
branches/histogram/HeuristicLab.Analysis/3.3/HeuristicLab.Analysis-3.3.csproj
r5961 r5994 140 140 <Compile Include="HeuristicLabAnalysisPlugin.cs" /> 141 141 <Compile Include="Properties\AssemblyInfo.cs" /> 142 <Compile Include="QualityAnalysis\QualityDistributionAnalyzer.cs" /> 142 143 <Compile Include="ValueAnalysis\MinAverageMaxValueAnalyzer.cs" /> 143 144 <Compile Include="ValueAnalysis\MinAverageMaxValueCalculator.cs" /> -
branches/histogram/HeuristicLab.Visualization.ChartControlsExtensions/3.3/HistogramControl.cs
r5970 r5994 32 32 33 33 private List<double> points; 34 public int NumberOfBins { 35 get { return (int)binsNumericUpDown.Value; } 36 set { binsNumericUpDown.Value = value; } 37 } 38 39 public int MinimumNumberOfBins { 40 get { return (int)binsNumericUpDown.Minimum; } 41 set { binsNumericUpDown.Minimum = value; } 42 } 43 44 public int MaximumNumberOfBins { 45 get { return (int)binsNumericUpDown.Maximum; } 46 set { binsNumericUpDown.Maximum = value; } 47 } 48 49 public int IncrementNumberOfBins { 50 get { return (int)binsNumericUpDown.Increment; } 51 set { binsNumericUpDown.Increment = value; } 52 } 53 54 public bool CalculateExactBins { 55 get { return exactCheckBox.Checked; } 56 set { exactCheckBox.Checked = value; } 57 } 58 59 public bool ShowExactCheckbox { 60 get { return exactCheckBox.Visible; } 61 set { exactCheckBox.Visible = value; } 62 } 34 63 35 64 public HistogramControl() { … … 64 93 65 94 private void UpdateHistogram() { 66 95 if (InvokeRequired) { 96 Invoke((Action)UpdateHistogram, null); 97 return; 98 } 67 99 Series histogramSeries = chart.Series[SeriesName]; 68 100 histogramSeries.Points.Clear(); … … 113 145 double rounding = range / base10; 114 146 if (rounding <= 1.5) rounding = 1; 115 else if (rounding <= 2 ) rounding = 2;116 else if (rounding <= 2.5) rounding = 2.5;117 else if (rounding <= 5) rounding = 5;147 else if (rounding <= 2.25) rounding = 2; 148 else if (rounding <= 3.75) rounding = 2.5; 149 else if (rounding <= 7.5) rounding = 5; 118 150 else rounding = 10; 119 151 return rounding * base10;
Note: See TracChangeset
for help on using the changeset viewer.