Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Charts/Axes/DateTime/HorizontalDateTimeAxis.cs @ 12503

Last change on this file since 12503 was 12503, checked in by aballeit, 9 years ago

#2283 added GUI and charts; fixed MCTS

File size: 892 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace 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.