PageRenderTime 19ms CodeModel.GetById 13ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/Main/src/DynamicDataDisplay/Charts/Axes/DateTime/VerticalDateTimeAxis.cs

#
C# | 23 lines | 21 code | 2 blank | 0 comment | 4 complexity | bd43dd9bed9562e1dea75700b54ec53a MD5 | raw file
 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}