public YDigitalDisplay(PictureBox ChartContainer, logFct logFunction) : base(ChartContainer, logFunction) { this._font = new YFontParams(this, this, Math.Min(ChartContainer.Width / 5, ChartContainer.Height / 2), null); this._font.color = Color.LightGreen; AllowRedraw(); Draw(); }
public YAngularGauge(PictureBox ChartContainer, logFct logFunction) : base(ChartContainer, logFunction) { this._graduationFont = new YFontParams(this, this, Math.Min(ChartContainer.Width, ChartContainer.Height) / 15, null); this._unitFont = new YFontParams(this, this, Math.Min(ChartContainer.Width, ChartContainer.Height) / 20, null); this._statusFont = new YFontParams(this, this, Math.Min(ChartContainer.Width, ChartContainer.Height) / 15, null); this.unitFont.color = Color.DarkGray; this.statusFont.color = Color.DarkGray; _zones = new List <YAngularZone>(); AllowRedraw(); Draw(); }
public YSolidGauge(PictureBox ChartContainer, DisplayMode mode, logFct logFunction) : base(ChartContainer, logFunction) { this._minMaxFont = new YFontParams(this, this, Math.Min(ChartContainer.Width, ChartContainer.Height) / 15, FontsizeChange); _displayMode = mode; this._font = new YFontParams(this, this, Math.Min(ChartContainer.Width, ChartContainer.Height) / 5, null); YGraphics g = new YGraphics(ChartContainer); DrawPrameters p = ComputeDrawParameters(g, UIContainer.Size.Width, UIContainer.Size.Height, mainViewPort); g.Dispose(); AllowRedraw(); Draw(); }