Class LayoutBounds
- java.lang.Object
-
- com.github.weisj.jsvg.attributes.filter.LayoutBounds
-
public final class LayoutBounds extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LayoutBounds.ComputeFlags
static class
LayoutBounds.Data
-
Field Summary
Fields Modifier and Type Field Description private LayoutBounds.ComputeFlags
additionalFlags
private @NotNull LayoutBounds.Data
data
private @NotNull java.util.function.BiFunction<@NotNull LayoutBounds.Data,LayoutBounds.ComputeFlags,@NotNull LayoutBounds.Data>
transformer
-
Constructor Summary
Constructors Modifier Constructor Description private
LayoutBounds(@NotNull LayoutBounds.Data data, @NotNull java.util.function.BiFunction<@NotNull LayoutBounds.Data,LayoutBounds.ComputeFlags,@NotNull LayoutBounds.Data> transformer, @NotNull LayoutBounds.ComputeFlags flags)
LayoutBounds(@NotNull java.awt.geom.Rectangle2D bounds, @NotNull FloatInsets clipBoundsEscapeInsets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull LayoutBounds
grow(float horizontal, float vertical, @NotNull FilterLayoutContext context)
@NotNull LayoutBounds.Data
resolve(@NotNull LayoutBounds.ComputeFlags flags)
java.lang.String
toString()
@NotNull LayoutBounds
transform(@NotNull java.util.function.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 Detail
-
data
@NotNull private final @NotNull LayoutBounds.Data data
-
transformer
@NotNull private final @NotNull java.util.function.BiFunction<@NotNull LayoutBounds.Data,LayoutBounds.ComputeFlags,@NotNull LayoutBounds.Data> transformer
-
additionalFlags
private final LayoutBounds.ComputeFlags additionalFlags
-
-
Constructor Detail
-
LayoutBounds
public LayoutBounds(@NotNull @NotNull java.awt.geom.Rectangle2D bounds, @NotNull @NotNull FloatInsets clipBoundsEscapeInsets)
-
LayoutBounds
private LayoutBounds(@NotNull @NotNull LayoutBounds.Data data, @NotNull @NotNull java.util.function.BiFunction<@NotNull LayoutBounds.Data,LayoutBounds.ComputeFlags,@NotNull LayoutBounds.Data> transformer, @NotNull @NotNull LayoutBounds.ComputeFlags flags)
-
-
Method Detail
-
transform
@NotNull public @NotNull LayoutBounds transform(@NotNull @NotNull java.util.function.BiFunction<@NotNull LayoutBounds.Data,LayoutBounds.ComputeFlags,@NotNull LayoutBounds.Data> newTransformer)
-
withFlags
@NotNull public @NotNull LayoutBounds withFlags(@NotNull @NotNull LayoutBounds.ComputeFlags flags)
-
resolve
@NotNull public @NotNull LayoutBounds.Data resolve(@NotNull @NotNull LayoutBounds.ComputeFlags flags)
-
union
@NotNull public @NotNull LayoutBounds union(@NotNull @NotNull LayoutBounds other)
-
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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-