Created RelationBase and NodeBase gui test classes
[LivingGraph.git] / GUI / RelationBase.cs
blobfbe0742f86d91c9083573f43db7ab180ffab9bef
1 using System.Windows.Forms;
2 using System.Drawing;
5 namespace LivingGraph.GUI
8 public class RelationBase
10 NodeBase m_Source;
11 NodeBase m_Sink;
15 public RelationBase(NodeBase source, NodeBase sink)
17 m_Source = source;
18 m_Sink = sink;
21 public Color backgroundColor = Color.Blue;
22 public void Paint(Graphics graphics)
24 //int penWidth = 4;
25 Pen pen = new Pen(Color.Black, 4);
27 int fontHeight = 10;
28 Font font = new Font("Arial", fontHeight);
30 SolidBrush brush = new SolidBrush(backgroundColor);
31 //graphics.FillEllipse(brush, 0, 0, Width, Height);
32 SolidBrush textBrush = new SolidBrush(Color.Black);
34 graphics.DrawLine(pen, m_Source.Location, m_Sink.Location);