Enum HSLFFontInfoPredefined

    • Method Detail

      • values

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

        public static HSLFFontInfoPredefined 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
      • getIndex

        public java.lang.Integer getIndex()
        Description copied from interface: FontInfo
        Get the index within the collection of Font objects
        Specified by:
        getIndex in interface FontInfo
        Returns:
        unique index number of the underlying record this Font represents (probably you don't care unless you're comparing which one is which)
      • setIndex

        public void setIndex​(int index)
        Description copied from interface: FontInfo
        Sets the index within the collection of Font objects
        Specified by:
        setIndex in interface FontInfo
        Parameters:
        index - the index within the collection of Font objects
      • getTypeface

        public java.lang.String getTypeface()
        Specified by:
        getTypeface in interface FontInfo
        Returns:
        the full name of the font, i.e. font family + type face
      • setTypeface

        public void setTypeface​(java.lang.String typeface)
        Description copied from interface: FontInfo
        Sets the font name
        Specified by:
        setTypeface in interface FontInfo
        Parameters:
        typeface - the full name of the font, when null removes the font definition - removal is implementation specific
      • setCharset

        public void setCharset​(FontCharset charset)
        Description copied from interface: FontInfo
        Sets the charset
        Specified by:
        setCharset in interface FontInfo
        Parameters:
        charset - the charset
      • setFamily

        public void setFamily​(FontFamily family)
        Description copied from interface: FontInfo
        Sets the font family class
        Specified by:
        setFamily in interface FontInfo
        Parameters:
        family - the font family class
      • getPitch

        public FontPitch getPitch()
        Specified by:
        getPitch in interface FontInfo
        Returns:
        the font pitch or null if unsupported
      • setPitch

        public void setPitch​(FontPitch pitch)
        Description copied from interface: FontInfo
        Set the font pitch
        Specified by:
        setPitch in interface FontInfo
        Parameters:
        pitch - the font pitch