Exemple #1
0
        private GoLabeledLink getMapLink(GoIconicNode n1, GoIconicNode n2)
        {
            GoLabeledLink link = new GoLabeledLink();

            link.Style              = GoStrokeStyle.Bezier;
            link.ToolTipText        = n1.Text + ", " + n2.Text;
            link.ToArrow            = true;
            link.ToArrowLength      = 9;
            link.ToArrowShaftLength = 6;
            link.ToArrowFilled      = true;
            link.Shadowed           = false;
            n1.Port.AddDestinationLink(link);
            n2.Port.AddSourceLink(link);
            return(link);
        }
Exemple #2
0
        private GoIconicNode addMapHost(uint ip, string ipStr)
        {
            GoIconicNode n = new GoIconicNode();

            n.Initialize(null, 0, ipStr);
            // labels are editable, but may be disabled by setting goView1.AllowEdit to false
            n.Editable       = true;
            n.Label.Editable = false;
            n.Label.FontSize = 8;
            n.Icon.Size      = new SizeF(16, 16);
            // port is whole icon, but linking may be disabled by setting goView1.AllowLink to false
            n.Port.Bounds = n.Icon.Bounds;
            utilMap.Add(ip, n);
            return(n);
        }