System.out.println("AT " + i + " " + d); System.out.println("x = " + x + "; y = " + y);
System.out.println("AT " + i + " " + d + "; " + "x = " + x + "; y = " + y);
    public void paint(Graphics g) {		Dimension s = getSize();		System.out.println("Size="+s);		if (n == 0) {			System.out.println("... but no data!");			return;		}		// Compute scale factors		float xfact =  s.width  / xrange;		float yfact =  s.height / yrange;		// Scale and plot the data        for (int i=0 ; i < n; i++) {			Apoint d = (Apoint)data.elementAt(i);			float x = (d.x-minx) * xfact;			float y = (d.y-miny) * yfact;			System.out.println("AT " + i + " " + d);			System.out.println("x = " + x + "; y = " + y);			// Draw a 5-pixel rectangle centered, so -2 both x and y.			// AWT numbers Y from 0 down, so invert:			g.drawRect(((int)x)-2, s.height-2-(int)y, 5, 5);		}    }