/*
 * 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 Cuadro extends linea{

    @Override
    public void dibuja(Graphics g) {
        g.setColor(c);
        int a;
        a = (x1 - x0);
        g.drawLine(x0, y0, x0, y0+a);
        g.drawLine(x0, y0+a, x0+a, y0+a);
        g.drawLine(x0+a, y0+a, x0+a, y0);
        g.drawLine(x0+a, y0, x0, y0); 
    }
}
