()
| 182 | } |
| 183 | |
| 184 | private void right() { |
| 185 | selected().map(a -> a.properties.get(Box.frame).x + a.properties.get(Box.frame).w) |
| 186 | .max(Float::compare) |
| 187 | .ifPresent(x -> { |
| 188 | selected().forEach(bx -> { |
| 189 | set(bx, z -> z.x = x.floatValue() - bx.properties.get(Box.frame).w); |
| 190 | bx.properties.get(Box.frame).x = x.floatValue() - bx.properties.get(Box.frame).w; |
| 191 | }); |
| 192 | Drawing.dirty(this); |
| 193 | }); |
| 194 | } |
| 195 | |
| 196 | protected void top() { |
| 197 | selected().map(a -> a.properties.get(Box.frame).y) |