コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }
コード例 #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));
        }
コード例 #4
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));
 }