Exemple #1
0
        internal void Draw(Graphic g)
        {
            int fh    = 30;
            int space = node.GetSpace();

            // TODO:unfinished
            if (space >= fh)
            {
                active = true;
                HTCoordS zs    = node.GetScreenCoordinates();
                String   name  = node.GetName();
                Color    color = node.GetColor();

                height = fh + 2 * node.GetSize();
                width  = space + 10 + 2 * node.GetSize();
                x      = zs.X - (width / 2) - node.GetSize();
                y      = zs.Y - (fh / 2) - node.GetSize();

                g.DrawDot(zs.X, zs.Y, 3, color);
                g.DrawLabel(x, y, width, height, name, color);
            }
            else
            {
                active = false;
            }
        }
Exemple #2
0
        internal void Draw(Graphic g)
        {
            int fh = 30;
            int space = node.GetSpace();
            // TODO:unfinished
            if (space >= fh)
            {
                active = true;
                HTCoordS zs = node.GetScreenCoordinates();
                String name = node.GetName();
                Color color = node.GetColor();

                height = fh + 2 * node.GetSize();
                width = space + 10 + 2 * node.GetSize();
                x = zs.X - (width / 2) - node.GetSize();
                y = zs.Y - (fh / 2) - node.GetSize();

                g.DrawDot(zs.X, zs.Y, 3, color);
                g.DrawLabel(x, y, width, height, name, color);

            }
            else
            {
                active = false;
            }
        }