| 156 | } |
| 157 | |
| 158 | private void abutV() { |
| 159 | List<Box> s = selected().sorted((a, b) -> Float.compare(a.properties.get(Box.frame).y, b.properties.get(Box.frame).y)) |
| 160 | .collect(Collectors.toList()); |
| 161 | float ax = s.get(0).properties.get(Box.frame).y + s.get(0).properties.get(Box.frame).h; |
| 162 | for (int i = 1; i < s.size(); i++) { |
| 163 | final float finalAx = ax; |
| 164 | set(s.get(i), z -> { |
| 165 | z.y = finalAx; |
| 166 | }); |
| 167 | |
| 168 | ax = s.get(i).properties.get(Box.frame).y + s.get(i).properties.get(Box.frame).h; |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | protected void left() { |
| 173 | selected().map(a -> a.properties.get(Box.frame).x) |