public boolean isNotLocal(Object owner) { if (owner instanceof Region) { if (((Region) owner).isOtherScreen()) { return true; } } else if (owner instanceof Location) { if (((Location) owner).isOtherScreen()) { return true; } } return false; }
/** * duplicates the point * @param loc other Location */ public Location(Location loc) { x = loc.x; y = loc.y; if (loc.isOtherScreen()) { otherScreen = loc.getScreen(); } }
/** * INTERNAL USE * identifies the point as being on a non-desktop-screen * if this is true for the given location * @return this */ private Location setOtherScreen(Location loc) { if (loc.isOtherScreen()) { setOtherScreen(loc.getScreen()); } return this; }
if (get().device.isSuspended() || loc.isOtherScreen()) { return null;