Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Charts/Axes/DateTime/VerticalDateTimeAxis.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: 669 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using Microsoft.Research.DynamicDataDisplay.ViewportConstraints;
6
7namespace Microsoft.Research.DynamicDataDisplay.Charts
8{
9  public class VerticalDateTimeAxis : DateTimeAxis
10  {
11    public VerticalDateTimeAxis()
12    {
13      Placement = AxisPlacement.Left;
14      Constraint = new DateTimeVerticalAxisConstraint();
15    }
16
17    protected override void ValidatePlacement(AxisPlacement newPlacement)
18    {
19      if (newPlacement == AxisPlacement.Bottom || newPlacement == AxisPlacement.Top)
20        throw new ArgumentException(Strings.Exceptions.VerticalAxisCannotBeHorizontal);
21    }
22  }
23}
Note: See TracBrowser for help on using the repository browser.