Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 |
|
---|
6 | namespace Microsoft.Research.DynamicDataDisplay.Charts
|
---|
7 | {
|
---|
8 | /// <summary>
|
---|
9 | /// Represents an axis with ticks of <see cref="System.DateTime"/> type, which can be placed only from bottom or top of <see cref="Plotter"/>.
|
---|
10 | /// By default is placed from bottom.
|
---|
11 | /// </summary>
|
---|
12 | public class HorizontalDateTimeAxis : DateTimeAxis
|
---|
13 | {
|
---|
14 | /// <summary>
|
---|
15 | /// Initializes a new instance of the <see cref="HorizontalDateTimeAxis"/> class.
|
---|
16 | /// </summary>
|
---|
17 | public HorizontalDateTimeAxis()
|
---|
18 | {
|
---|
19 | Placement = AxisPlacement.Bottom;
|
---|
20 | }
|
---|
21 |
|
---|
22 | protected override void ValidatePlacement(AxisPlacement newPlacement)
|
---|
23 | {
|
---|
24 | if (newPlacement == AxisPlacement.Left || newPlacement == AxisPlacement.Right)
|
---|
25 | throw new ArgumentException(Strings.Exceptions.HorizontalAxisCannotBeVertical);
|
---|
26 | }
|
---|
27 | }
|
---|
28 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.