Calculates copyPlaceLocations relatively to x, y
(final int x, final int y)
| 85 | * Calculates copyPlaceLocations relatively to x, y |
| 86 | */ |
| 87 | private static void generateLocations(final int x, final int y) { |
| 88 | copyPlaceLocations = new HashSet<>(); |
| 89 | for (final Place place : copyPlaces) { |
| 90 | copyPlaceLocations.add(new Pair<>(place.getX() - x, place.getY() - y)); |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * Checks whether the places can be pasted relatively to x,y on layer |