MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / right

Method right

src/main/java/fieldbox/boxes/plugins/Alignment.java:184–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 7

selectedMethod · 0.95
setMethod · 0.95
dirtyMethod · 0.95
getMethod · 0.65
maxMethod · 0.45
mapMethod · 0.45
forEachMethod · 0.45

Tested by

no test coverage detected