while (it.hasPrevious()) {
Long id = it.previous();
Surface surface = fIdToSurface.get(id);
// get the color at the given location
ImageData data = surface.getImageData(x, y, 1, 1);
double alpha = data.getAlpha(0, 0);
// hit is not transparent - we got a hit!
if (alpha > Double.MIN_VALUE) {
// we entered on an object, signal it