Esempio n. 1
0
		public virtual void Paint(Pad pad, double xMin, double xMax, double yMin, double yMax)
		{
			pad.DrawLine(new Pen(this.Color)
			{
				Width = this.Width,
				DashStyle = this.DashStyle
			}, this.X1, this.Y1, this.X2, this.Y2);
		}
Esempio n. 2
0
		public virtual void Paint(Pad pad, double XMin, double XMax, double YMin, double YMax)
		{
			Pen Pen = new Pen(this.LineColor);
			Brush brush = this.Dea6GTXBpE != null ? this.Dea6GTXBpE : (Brush)new SolidBrush(this.FillColor);
			for (int Index = 0; Index < this.fNBins; ++Index)
			{
				pad.Graphics.FillRectangle(brush, pad.ClientX(this.GetBinMin(Index)), pad.ClientY(this.fBins[Index]), Math.Abs(pad.ClientX(this.GetBinMax(Index)) - pad.ClientX(this.GetBinMin(Index))), Math.Abs(pad.ClientY(this.fBins[Index]) - pad.ClientY(0.0)));
				pad.DrawLine(Pen, this.GetBinMin(Index), 0.0, this.GetBinMin(Index), this.fBins[Index]);
				pad.DrawLine(Pen, this.GetBinMin(Index), this.fBins[Index], this.GetBinMax(Index), this.fBins[Index]);
				pad.DrawLine(Pen, this.GetBinMax(Index), this.fBins[Index], this.GetBinMax(Index), 0.0);
			}
		}
Esempio n. 3
0
		public virtual void Paint(Pad pad, double xMin, double xMax, double yMin, double yMax)
		{
			if (this.Style == EGraphStyle.Line && this.LineEnabled)
			{
				Pen pen = new Pen(this.LineColor);
				pen.DashStyle = this.LineDashStyle;
				double X1 = 0.0;
				double Y1 = 0.0;
				bool flag = true;
				foreach (TMarker tmarker in this.points)
				{
					if (!flag)
						pad.DrawLine(pen, X1, Y1, tmarker.X, tmarker.Y);
					else
						flag = false;
					X1 = tmarker.X;
					Y1 = tmarker.Y;
				}
			}
			if ((this.Style == EGraphStyle.Line || this.Style == EGraphStyle.Scatter) && this.MarkerEnabled)
			{
				foreach (TMarker tmarker in this.points)
					tmarker.Paint(pad, xMin, xMax, yMin, yMax);
			}
			if (this.Style != EGraphStyle.Bar)
				return;
			foreach (TMarker tmarker in this.points)
			{
				if (tmarker.Y > 0.0)
					pad.Graphics.FillRectangle(new SolidBrush(Color.Black), pad.ClientX(tmarker.X) - this.BarWidth / 2, pad.ClientY(tmarker.Y), this.BarWidth, pad.ClientY(0.0) - pad.ClientY(tmarker.Y));
				else
					pad.Graphics.FillRectangle(new SolidBrush(Color.Black), pad.ClientX(tmarker.X) - this.BarWidth / 2, pad.ClientY(0.0), this.BarWidth, pad.ClientY(tmarker.Y) - pad.ClientY(0.0));
			}
		}