Enum PreserveAspectRatio.Align

    • Enum Constant Detail

      • None

        public static final PreserveAspectRatio.Align 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

        public static final PreserveAspectRatio.Align 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

        public static final PreserveAspectRatio.Align 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

        public static final PreserveAspectRatio.Align 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

        public static final PreserveAspectRatio.Align 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

        public static final PreserveAspectRatio.Align 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

        public static final PreserveAspectRatio.Align 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

        public static final PreserveAspectRatio.Align 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

        public static final PreserveAspectRatio.Align 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

        public static final PreserveAspectRatio.Align 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.
    • Method Detail

      • values

        public static PreserveAspectRatio.Align[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PreserveAspectRatio.Align c : PreserveAspectRatio.Align.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PreserveAspectRatio.Align valueOf​(java.lang.String name)
        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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null