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

package borrame;

import java.awt.Graphics;

public class Cuadro extends Linea{
    public Cuadro() {
        
    }
    
    @Override
    public void dibuja(Graphics g) {
        g.setColor(c);
        int 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); 
    }
}
