温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:简单WEB流程图组件Demo源码
当前文件:
WorkFlowChartDemo/WorkFlowChart_Source/WorkFlowChart/NodeStart.cs[1K,2009-6-12 11:58:39],打开代码结构图
WorkFlowChartDemo/WorkFlowChart_Source/WorkFlowChart/NodeStart.cs[1K,2009-6-12 11:58:39],打开代码结构图1namespace WorkFlowChart 2
{ 3
using System; 4
using System.Drawing; 5
using System.Drawing.Drawing2D; 6
7
public class NodeStart : AbstractNode 8
{ 9
private int _h = 30; 10
private int _w = 30; 11
private int _x = 0; 12
private int _y = 0; 13
14
public override void Draw(Graphics g) 15
{ 16
g.DrawEllipse(new Pen(Color.Black), this.X, this.Y, this.W, this.H); 17
g.SmoothingMode = SmoothingMode.AntiAlias; 18
g.DrawString("S", new Font("Courier New", 10f), new SolidBrush(Color.Black), (float) (this.X + 8), (float) (this.Y + 8)); 19
this.DrawOneLineNomal(g, new Pen(Color.Black)); 20
} 21
22
public override void Draw(Graphics g, int x, int y, int w, int h) 23
{ 24
} 25
26
public override int H 27
{ 28
get 29
{ 30
return this._h; 31
} 32
set 33
{ 34
this._h = value; 35
} 36
} 37
38
public override int W 39
{ 40
get 41
{ 42
return this._w; 43
} 44
set 45
{ 46
this._w = value; 47
} 48
} 49
50
public override int X 51
{ 52
get 53
{ 54
return this._x; 55
} 56
set 57
{ 58
this._x = value; 59
} 60
} 61
62
public override int Y 63
{ 64
get 65
{ 66
return this._y; 67
} 68
set 69
{ 70
this._y = value; 71
} 72
} 73
} 74
} 75
76






}
}