public PortLinkContactPointGlyph(Point centre, int radius, IGlyph parent, TransitionContactEnd whichEnd, PortLinkContactPointGlyph otherEnd)
     : base(new Rectangle(centre.X - radius, centre.Y - radius, radius + radius, radius + radius))
 {
     this.Parent    = parent;
     this._WhichEnd = whichEnd;
     this._OtherEnd = otherEnd;
 }
 public PortLinkContactPointGlyph(Point centre, int radius, IGlyph parent, TransitionContactEnd whichEnd, PortLinkContactPointGlyph otherEnd)
     : base(new Rectangle (centre.X - radius, centre.Y - radius, radius + radius, radius + radius))
 {
     this.Parent = parent;
     this._WhichEnd = whichEnd;
     this._OtherEnd = otherEnd;
 }
Beispiel #3
0
        protected void BuildContactPoints()
        {
            int radius = 5;
            PortLinkContactPointGlyph fromPoint = new PortLinkContactPointGlyph(_From, radius - 1, this, TransitionContactEnd.From, null);

            AddContactPoint(fromPoint);
            AddContactPoint(new PortLinkContactPointGlyph(_To, radius, this, TransitionContactEnd.To, fromPoint));
        }
 protected void BuildContactPoints()
 {
     int radius = 5;
     PortLinkContactPointGlyph fromPoint = new PortLinkContactPointGlyph (_From, radius - 1, this, TransitionContactEnd.From, null);
     AddContactPoint (fromPoint);
     AddContactPoint (new PortLinkContactPointGlyph (_To, radius, this, TransitionContactEnd.To, fromPoint));
 }