import java.awt.Graphics; public class Kolmnurk implements Kujund{ int x1, y1, x2, y2, x3, y3; public Kolmnurk(int ux1, int uy1, int ux2, int uy2, int ux3, int uy3){ x1=ux1; y1=uy1; x2=ux2; y2=uy2; x3=ux3; y3=uy3; } public void joonista(Graphics g){ g.drawLine(x1, y1, x2, y2); g.drawLine(x2, y2, x3, y3); g.drawLine(x3, y3, x1, y1); } }