Enum FontStretch

    • Enum Constant Detail

      • UltraCondensed

        public static final FontStretch UltraCondensed
      • ExtraCondensed

        public static final FontStretch ExtraCondensed
      • SemiCondensed

        public static final FontStretch SemiCondensed
      • SemiExpanded

        public static final FontStretch SemiExpanded
      • 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 Detail

      • percentage

        private final float percentage
      • matchName

        @NotNull
        private final @NotNull java.lang.String matchName
    • Constructor Detail

      • FontStretch

        private FontStretch​(float percentage,
                            @NotNull
                            @NotNull java.lang.String matchName)
      • FontStretch

        private FontStretch​(float percentage)
    • Method Detail

      • values

        public static FontStretch[] 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 (FontStretch c : FontStretch.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

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

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

        public float percentage()