Status: Invalid

Comment #1 on issue 233 by atdi...@gmail.com: adding PHandle


Your locator has a few defects:

1) You are returning the "X" coordinate in the locateY() method.
2) You should be returning *local* coordinates, not "full bounds" coordinates.

Your locator should look like:

        final PLocator locator = new PLocator() {
            public double locateX() {
                double x = circle.getBounds().getCenter2D().getX();

                return x;
            public double locateY() {
                double y = circle.getBounds().getCenter2D().getY();
                return y;

Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en

Reply via email to