/**
 * Write a description of class MyLine here.
 * 
 * @author Michael Rivers 
 * @version April 18th 2006
 */

import java.awt.*;
import javax.swing.*;
public class MyLine extends Shape
{
    //this classes uses protected xLength and yLength to store
    //the variables used to determine the length of the line.
    /**
     * Constructors for objects of class MyRectangle
     */
    public MyLine()
    {
        super();
    }

    public MyLine(int x, int y, int x2, int y2, Color lineColor)
    {
        super(x,y,x2,y2,lineColor);
    }

    public MyLine(int x, int y, int x2, int y2)
    {
        super(x,y,x2,y2);
    }

    public void draw(Graphics g)
    {
        g.setColor(shapeColor);
        g.drawLine(x,y,x+xLength,y+yLength);
    }
}
