Enum FontStretch

java.lang.Object
java.lang.Enum<FontStretch>
com.github.weisj.jsvg.attributes.font.FontStretch
All Implemented Interfaces:
HasMatchName, Serializable, Comparable<FontStretch>, java.lang.constant.Constable

public enum FontStretch extends Enum<FontStretch> implements HasMatchName
  • Enum Constant Details

    • Normal

      public static final FontStretch Normal
    • UltraCondensed

      public static final FontStretch UltraCondensed
    • ExtraCondensed

      public static final FontStretch ExtraCondensed
    • Condensed

      public static final FontStretch Condensed
    • SemiCondensed

      public static final FontStretch SemiCondensed
    • SemiExpanded

      public static final FontStretch SemiExpanded
    • Expanded

      public static final FontStretch Expanded
    • ExtraExpanded

      public static final FontStretch ExtraExpanded
    • UltraExpanded

      public static final FontStretch UltraExpanded
    • Percentage

      public static final FontStretch Percentage
      Allowed values range from 50% to 200%.
  • Field Details

    • percentage

      private final float percentage
    • matchName

      @NotNull private final @NotNull String matchName
  • Constructor Details

    • FontStretch

      private FontStretch(float percentage, @NotNull @NotNull String matchName)
    • FontStretch

      private FontStretch(float percentage)
  • Method Details

    • values

      public static FontStretch[] 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 FontStretch 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
    • matchName

      @NotNull public @NotNull String matchName()
      Specified by:
      matchName in interface HasMatchName
    • percentage

      public float percentage()