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






}
}