Package com.github.weisj.jsvg.attributes
Class PreserveAspectRatio
- java.lang.Object
-
- com.github.weisj.jsvg.attributes.PreserveAspectRatio
-
public final class PreserveAspectRatio extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PreserveAspectRatio.Align
private static class
PreserveAspectRatio.AlignType
static class
PreserveAspectRatio.MeetOrSlice
-
Field Summary
Fields Modifier and Type Field Description @NotNull PreserveAspectRatio.Align
align
@NotNull PreserveAspectRatio.MeetOrSlice
meetOrSlice
-
Constructor Summary
Constructors Modifier Constructor Description private
PreserveAspectRatio(@NotNull PreserveAspectRatio.Align align, @NotNull PreserveAspectRatio.MeetOrSlice meetOrSlice)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.awt.geom.AffineTransform
computeViewPortTransform(@NotNull FloatSize size, @NotNull ViewBox viewBox)
boolean
equals(java.lang.Object o)
int
hashCode()
static @NotNull PreserveAspectRatio
none()
static @NotNull PreserveAspectRatio
parse(@Nullable java.lang.String preserveAspectRation, @NotNull AttributeParser parser)
static @NotNull PreserveAspectRatio
parse(@Nullable java.lang.String preserveAspectRation, @Nullable PreserveAspectRatio fallback, @NotNull AttributeParser parser)
java.lang.String
toString()
-
-
-
Field Detail
-
align
@NotNull public final @NotNull PreserveAspectRatio.Align align
-
meetOrSlice
@NotNull public final @NotNull PreserveAspectRatio.MeetOrSlice meetOrSlice
-
-
Constructor Detail
-
PreserveAspectRatio
private PreserveAspectRatio(@NotNull @NotNull PreserveAspectRatio.Align align, @NotNull @NotNull PreserveAspectRatio.MeetOrSlice meetOrSlice)
-
-
Method Detail
-
none
@NotNull public static @NotNull PreserveAspectRatio none()
-
parse
@NotNull public static @NotNull PreserveAspectRatio parse(@Nullable @Nullable java.lang.String preserveAspectRation, @NotNull @NotNull AttributeParser parser)
-
parse
@NotNull public static @NotNull PreserveAspectRatio parse(@Nullable @Nullable java.lang.String preserveAspectRation, @Nullable @Nullable PreserveAspectRatio fallback, @NotNull @NotNull AttributeParser parser)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
computeViewPortTransform
@NotNull public @NotNull java.awt.geom.AffineTransform computeViewPortTransform(@NotNull @NotNull FloatSize size, @NotNull @NotNull ViewBox viewBox)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-