?? lineplot.cs
字號:
using System;
using System.Drawing ;
using System.Windows.Forms;
namespace Strategy {
/// <summary>
/// Summary description for LinePlot.
/// </summary>
public class LinePlot :BarPlot {
public LinePlot() {
init();
}
protected void init() {
bPen = new Pen(Color.Black);
this.Text = "Line Plot";
}
protected override void pic_Paint(object sender, PaintEventArgs e) {
Graphics g= e.Graphics;
if (hasData) {
for (int i = 1; i< x.Length; i++) {
int ix = calcx(x[i - 1]);
int iy = calcy(y[i - 1]);
int ix1 = calcx(x[i]);
int iy1 = calcy(y[i]);
g.DrawLine(bPen, ix, iy, ix1, iy1);
}
}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -