/// <summary> /// Initializes a new instance of the <see cref="SimpleScale"/> class. /// </summary> /// <param name="parent">The parent gauge object.</param> public SimpleScale(GaugeObject parent) : base(parent) { MajorTicks = new ScaleTicks(10, 2, Color.Black); MinorTicks = new ScaleTicks(6, 1, Color.Black); majorTicksNum = 6; firstSubScale = new SimpleSubScale(); secondSubScale = new SimpleSubScale(); }
/// <summary> /// Initializes a new instance of the <see cref="RadialScale"/> class. /// </summary> /// <param name="parent">The parent gauge object.</param> public RadialScale(RadialGauge parent) : base(parent) { MajorTicks = new ScaleTicks(5, 2, Color.Black, 11); MinorTicks = new ScaleTicks(2, 1, Color.Black, 4); majorStep = 27; //degree, 135/5 minorStep = 5.4f; // degree, 27/5 drawRight = true; drawLeft = true; }
/// <summary> /// Initializes a new instance of the <see cref="LinearScale"/> class. /// </summary> /// <param name="parent">The parent gauge object.</param> public LinearScale(GaugeObject parent) : base(parent) { MajorTicks = new ScaleTicks(10, 2, Color.Black); MinorTicks = new ScaleTicks(6, 1, Color.Black); majorTicksNum = 6; }