PageRenderTime 33ms CodeModel.GetById 21ms app.highlight 5ms RepoModel.GetById 1ms 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
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Text;
 5
 6namespace Microsoft.Research.DynamicDataDisplay.Charts.Axes
 7{
 8	public class IntegerAxisControl : AxisControl<int>
 9	{
10		public IntegerAxisControl()
11		{
12			LabelProvider = new GenericLabelProvider<int>();
13			TicksProvider = new IntegerTicksProvider();
14			ConvertToDouble = i => (double)i;
15			ConvertFromDouble = i => (int)i;
16			Range = new Range<int>(0, 1);
17		}
18	}
19}