boolean (final DevicePoint devicePoint) { // Get this rectangle and the device point in their own screen coordinate systems. If the rectangle is going to contain the device // point, then they must be on the same screen, and will therefore be in the same coordinate system, and it's safe to compare. return getScreenRectangle().contains(devicePoint.getLocationOnScreen()); }