PageRenderTime 46ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/Main/src/DynamicDataDisplay/Charts/Axes/Integer/IntegerAxisControl.cs

#
C# | 19 lines | 18 code | 1 blank | 0 comment | 0 complexity | 672dd2ff2028604c446b6395dd28fd2f MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Microsoft.Research.DynamicDataDisplay.Charts.Axes
  6. {
  7. public class IntegerAxisControl : AxisControl<int>
  8. {
  9. public IntegerAxisControl()
  10. {
  11. LabelProvider = new GenericLabelProvider<int>();
  12. TicksProvider = new IntegerTicksProvider();
  13. ConvertToDouble = i => (double)i;
  14. ConvertFromDouble = i => (int)i;
  15. Range = new Range<int>(0, 1);
  16. }
  17. }
  18. }