Enum UIHints.TextWidthHint

    • Method Detail

      • values

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

        public static UIHints.TextWidthHint 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
      • getWidth

        public abstract int getWidth()
        Returns the width for this hint. Note that the actual value is not API, and should not be assumed nor used by clients.
        Returns:
        the width this represents
      • getDefault

        public static final UIHints.TextWidthHint getDefault()
        Encodes the default text width hint when unspecified otherwise. The default is the value of MEDIUM.
        Returns:
        the default width