Class LayoutBounds
java.lang.Object
com.github.weisj.jsvg.attributes.filter.LayoutBounds
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LayoutBounds.ComputeFlags
private final @NotNull LayoutBounds.Data
private final @NotNull BiFunction
<@NotNull LayoutBounds.Data, LayoutBounds.ComputeFlags, @NotNull LayoutBounds.Data> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
LayoutBounds
(@NotNull LayoutBounds.Data data, @NotNull BiFunction<@NotNull LayoutBounds.Data, LayoutBounds.ComputeFlags, @NotNull LayoutBounds.Data> transformer, @NotNull LayoutBounds.ComputeFlags flags) LayoutBounds
(@NotNull Rectangle2D bounds, @NotNull FloatInsets clipBoundsEscapeInsets) -
Method Summary
Modifier and TypeMethodDescription@NotNull LayoutBounds
grow
(float horizontal, float vertical, @NotNull FilterLayoutContext context) @NotNull LayoutBounds.Data
resolve
(@NotNull LayoutBounds.ComputeFlags flags) toString()
@NotNull LayoutBounds
transform
(@NotNull BiFunction<@NotNull LayoutBounds.Data, LayoutBounds.ComputeFlags, @NotNull LayoutBounds.Data> newTransformer) @NotNull LayoutBounds
translate
(float dx, float dy, @NotNull FilterLayoutContext context) @NotNull LayoutBounds
union
(@NotNull LayoutBounds other) @NotNull LayoutBounds
withFlags
(@NotNull LayoutBounds.ComputeFlags flags)
-
Field Details
-
data
-
transformer
@NotNull private final @NotNull BiFunction<@NotNull LayoutBounds.Data,LayoutBounds.ComputeFlags, transformer@NotNull LayoutBounds.Data> -
additionalFlags
-
-
Constructor Details
-
LayoutBounds
public LayoutBounds(@NotNull @NotNull Rectangle2D bounds, @NotNull @NotNull FloatInsets clipBoundsEscapeInsets) -
LayoutBounds
private LayoutBounds(@NotNull @NotNull LayoutBounds.Data data, @NotNull @NotNull BiFunction<@NotNull LayoutBounds.Data, LayoutBounds.ComputeFlags, @NotNull LayoutBounds.Data> transformer, @NotNull @NotNull LayoutBounds.ComputeFlags flags)
-
-
Method Details
-
transform
@NotNull public @NotNull LayoutBounds transform(@NotNull @NotNull BiFunction<@NotNull LayoutBounds.Data, LayoutBounds.ComputeFlags, @NotNull LayoutBounds.Data> newTransformer) -
withFlags
-
resolve
@NotNull public @NotNull LayoutBounds.Data resolve(@NotNull @NotNull LayoutBounds.ComputeFlags flags) -
union
-
grow
@NotNull public @NotNull LayoutBounds grow(float horizontal, float vertical, @NotNull @NotNull FilterLayoutContext context) -
translate
@NotNull public @NotNull LayoutBounds translate(float dx, float dy, @NotNull @NotNull FilterLayoutContext context) -
toString
-