Package com.github.weisj.jsvg.attributes
Enum PreserveAspectRatio.Align
java.lang.Object
java.lang.Enum<PreserveAspectRatio.Align>
com.github.weisj.jsvg.attributes.PreserveAspectRatio.Align
- All Implemented Interfaces:
Serializable
,Comparable<PreserveAspectRatio.Align>
,java.lang.constant.Constable
- Enclosing class:
PreserveAspectRatio
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDo not force uniform scaling.Force uniform scaling.Force uniform scaling.Force uniform scaling.Force uniform scaling.Force uniform scaling.Force uniform scaling.Force uniform scaling.Force uniform scaling.Force uniform scaling. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NotNull PreserveAspectRatio.AlignType
private final @NotNull PreserveAspectRatio.AlignType
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Align
(@NotNull PreserveAspectRatio.AlignType xAlign, @NotNull PreserveAspectRatio.AlignType yAlign) -
Method Summary
Modifier and TypeMethodDescriptiontoString()
static PreserveAspectRatio.Align
Returns the enum constant of this type with the specified name.static PreserveAspectRatio.Align[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
None
Do not force uniform scaling. Scale the graphic content of the given element non-uniformly if necessary such that the element's bounding box exactly matches the viewport rectangle. Note that if [align] is none, then the optional [meetOrSlice] value is ignored. -
xMinYMin
Force uniform scaling. Align the [min-x] of the element's viewBox with the smallest X value of the viewport. Align the [min-y] of the element's viewBox with the smallest Y value of the viewport. -
xMidYMin
Force uniform scaling. Align the midpoint X value of the element's viewBox with the midpoint X value of the viewport. Align the [min-y] of the element's viewBox with the smallest Y value of the viewport. -
xMaxYMin
Force uniform scaling. Align the [min-x]+[width] of the element's viewBox with the maximum X value of the viewport. Align the [min-y] of the element's viewBox with the smallest Y value of the viewport. -
xMinYMid
Force uniform scaling. Align the [min-x] of the element's viewBox with the smallest X value of the viewport. Align the midpoint Y value of the element's viewBox with the midpoint Y value of the viewport. -
xMidYMid
Force uniform scaling. Align the midpoint X value of the element's viewBox with the midpoint X value of the viewport. Align the midpoint Y value of the element's viewBox with the midpoint Y value of the viewport. -
xMaxYMid
Force uniform scaling. Align the [min-x]+[width] of the element's viewBox with the maximum X value of the viewport. Align the midpoint Y value of the element's viewBox with the midpoint Y value of the viewport. -
xMinYMax
Force uniform scaling. Align the [min-x] of the element's viewBox with the smallest X value of the viewport. Align the [min-y]+[height] of the element's viewBox with the maximum Y value of the viewport. -
xMidYMax
Force uniform scaling. Align the midpoint X value of the element's viewBox with the midpoint X value of the viewport. Align the [min-y]+[height] of the element's viewBox with the maximum Y value of the viewport. -
xMaxYMax
Force uniform scaling. Align the [min-x]+[width] of the element's viewBox with the maximum X value of the viewport. Align the [min-y]+[height] of the element's viewBox with the maximum Y value of the viewport.
-
-
Field Details
-
xAlign
-
yAlign
-
-
Constructor Details
-
Align
private Align(@NotNull @NotNull PreserveAspectRatio.AlignType xAlign, @NotNull @NotNull PreserveAspectRatio.AlignType yAlign)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<PreserveAspectRatio.Align>
-