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

public static enum PreserveAspectRatio.Align extends Enum<PreserveAspectRatio.Align>
  • Enum Constant Details

    • 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.
  • Field Details

  • Constructor Details

  • Method Details

    • values

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

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

      public String toString()
      Overrides:
      toString in class Enum<PreserveAspectRatio.Align>