- 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 classPreserveAspectRatio.Alignprivate static classPreserveAspectRatio.AlignTypestatic classPreserveAspectRatio.MeetOrSlice
-
Field Summary
Fields Modifier and Type Field Description @NotNull PreserveAspectRatio.Alignalign@NotNull PreserveAspectRatio.MeetOrSlicemeetOrSlice
-
Constructor Summary
Constructors Modifier Constructor Description privatePreserveAspectRatio(@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.AffineTransformcomputeViewPortTransform(@NotNull FloatSize size, @NotNull ViewBox viewBox)booleanequals(java.lang.Object o)inthashCode()static @NotNull PreserveAspectRationone()static @NotNull PreserveAspectRatioparse(@Nullable java.lang.String preserveAspectRation, @NotNull AttributeParser parser)static @NotNull PreserveAspectRatioparse(@Nullable java.lang.String preserveAspectRation, @Nullable PreserveAspectRatio fallback, @NotNull AttributeParser parser)java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein 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:
toStringin classjava.lang.Object
-
-