/// <summary> /// Initializes a new instance of the <see cref="Paint.SpeedGauge"/> class. /// </summary> /// <param name='graphicsDisplay'>raphics display.</param> /// <param name='speedGaugeDefinition'>Speed gauge definition.</param> public SpeedGauge(IGraphicsDisplay graphicsDisplay, SpeedGaugeDefinition speedGaugeDefinition) : base(speedGaugeDefinition.BackgroundColor, speedGaugeDefinition.BorderColor, speedGaugeDefinition.BorderWidth, graphicsDisplay, speedGaugeDefinition.Bounds) { this.speedGaugeDefinition = speedGaugeDefinition; this.CreateGauge(graphicsDisplay); this.CreateGraphicsRectangles(graphicsDisplay); }