/// <summary> /// Default ctor /// </summary> /// <param name="s"></param> public OvalShape(GraphControl s) : base(s) { cBottom = new Connector(new Point((int)(rectangle.Left + rectangle.Width / 2), rectangle.Bottom)); cBottom.Site = this.site; cBottom.Name = "Bottom connector"; connectors.Add(cBottom); cLeft = new Connector(new Point(rectangle.Left, (int)(rectangle.Top + rectangle.Height / 2))); cLeft.Site = this.site; cLeft.Name = "Left connector"; connectors.Add(cLeft); cRight = new Connector(new Point(rectangle.Right, (int)(rectangle.Top + rectangle.Height / 2))); cRight.Site = this.site; cRight.Name = "Right connector"; connectors.Add(cRight); cTop = new Connector(new Point((int)(rectangle.Left + rectangle.Width / 2), rectangle.Top)); cTop.Site = this.site; cTop.Name = "Top connector"; connectors.Add(cTop); }
/// <summary> /// Ctor with the site of the entity /// </summary> /// <param name="site"></param> public Entity(GraphControl site) { this.site = site; }
/// <summary> /// Default ctor /// </summary> /// <param name="s"></param> public TextLabel(GraphControl s) : base(s) { this.shapeColor = Color.Transparent; }
/// <summary> /// Constructor with the site of the shape /// </summary> /// <param name="site">the graphcontrol instance to which the shape is attached</param> public ShapeBase(GraphControl site) : base(site) { Init(); }
public Proxy(GraphControl site) { this.site = site; }