File "MyLine.java"
Full Path: /home/analogde/www/Ebook/Informatique/JAVA/Source_TLS/Move/MyLine.java
File size: 430 bytes
MIME-type: text/plain
Charset: utf-8
package toto;
import java.awt.*;
public class MyLine extends MyShape
{
// constructor
public MyLine(int firstX,int firstY,int secondX,int secondY,Color shapeColor )
{
super( firstX, firstY, secondX, secondY, shapeColor );
}
// end constructor
// draw a line
public void draw( Graphics g )
{
g.setColor( getColor() );
g.drawLine( getX1(), getY1(), getX2(), getY2() );
}
// end method draw
}// end class MyLine