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

Method left

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

Source from the content-addressed store, hash-verified

170 }
171
172 protected void left() {
173 selected().map(a -> a.properties.get(Box.frame).x)
174 .min(Float::compare)
175 .ifPresent(x -> {
176 selected().forEach(bx -> {
177 set(bx, z -> z.x = x.floatValue());
178 bx.properties.get(Box.frame).x = x.floatValue();
179 });
180 Drawing.dirty(this);
181 });
182 }
183
184 private void right() {
185 selected().map(a -> a.properties.get(Box.frame).x + a.properties.get(Box.frame).w)

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected