/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Capitulo_6.Dibujo;

import java.awt.Graphics;

/**
 *
 * @author felix
 */
public class Rectangulo extends linea{
   @Override
    public void dibuja(Graphics g) {
        g.setColor(c);
        g.drawLine(x0, y0, x0, y1);
        g.drawLine(x0, y1, x1, y1);
        g.drawLine(x1, y1, x1, y0);
        g.drawLine(x1, y0, x0, y0);        
    }
}
