Ejemplo n.º 1
0
        public void Draw(Graphics g)
        {
            HinhTron ht = new HinhTron(this.r, this.I, Color.Black);

            ht.Draw(g);

            Elip he = new Elip(this.I, this.r, this.r * 1 / 4, Color.Black);

            he.Draw3d(g);
        }
Ejemplo n.º 2
0
        public void Draw(Graphics g)
        {
            Elip el = new Elip(this.I, r, r - r / 2, Color.Black);

            el.Draw3d(g);

            Line l;

            l = new Line(this.p1, this.p2, Color.Black);
            l.Draw(g);

            l = new Line(this.p1, this.p3, Color.Black);
            l.Draw(g);
        }
Ejemplo n.º 3
0
        public void Draw(Graphics g)
        {
            Line l;
            Elip e;

            e = new Elip(this.p1, r, r / 2, Color.Black);
            e.Draw3d(g);

            e = new Elip(this.p2, r, r / 2, Color.Black);
            e.Draw(g);

            l = new Line(this.p3, this.p5, Color.Black);
            l.Draw(g);

            l = new Line(this.p4, this.p6, Color.Black);
            l.Draw(g);
        }