import java.awt.*; import java.awt.geom.*; public class Kujund6 extends Frame{ public void paint(Graphics alggr){ Graphics2D g=(Graphics2D)alggr; Shape kujund=new Rectangle2D.Float(20, 40, 40, 40); PathIterator pt=kujund.getPathIterator(new AffineTransform()); while(!pt.isDone()){ float[] pd=new float[6]; int nr=pt.currentSegment(pd); System.out.println("nr="+nr); for(int i=0; i