Closed GoogleCodeExporter closed 9 years ago
Vijay,
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;
}
};
Original comment by atdi...@gmail.com
on 18 Dec 2011 at 8:31
Original issue reported on code.google.com by
vijay.ro...@uniken.com
on 13 Dec 2011 at 12:51