Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 |
|
---|
6 | namespace 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 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.