Class FXGFontDescription

  • All Implemented Interfaces:
    java.io.Serializable

    public final class FXGFontDescription
    extends FontDescription
    An FXG description of a font. This description can be used for looking up fonts.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      FXGFontDescription​(Platform platform, ULocale locale, java.lang.String familyName, boolean isBold, boolean isItalic)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getFamilyName()
      Get the font family name used for FXG.
      ULocale getLocale()
      Get the locale that this description is for.
      Platform getPlatform()
      Get the platform that this description is for.
      int hashCode()  
      boolean isBold()
      Tests whether the font is bold in FXG terms.
      boolean isItalic()
      Tests whether the font is italic in FXG terms.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FXGFontDescription

        public FXGFontDescription​(Platform platform,
                                  ULocale locale,
                                  java.lang.String familyName,
                                  boolean isBold,
                                  boolean isItalic)
        Constructor
        Parameters:
        platform - the platform that this description is for
        familyName - the FXG font family name
        isBold - true if the font is bold; false otherwise
        isItalic - true if the font is italic; false otherwise
    • Method Detail

      • getPlatform

        public Platform getPlatform()
        Get the platform that this description is for.
        Returns:
        the platform that this description is for
      • getLocale

        public ULocale getLocale()
        Get the locale that this description is for.
        Returns:
        the locale that this description is for
      • getFamilyName

        public java.lang.String getFamilyName()
        Get the font family name used for FXG.
        Returns:
        the font family name
      • isBold

        public boolean isBold()
        Tests whether the font is bold in FXG terms.
        Returns:
        true if the font is bold; false otherwise
      • isItalic

        public boolean isItalic()
        Tests whether the font is italic in FXG terms.
        Returns:
        true if the font is italic; false otherwise
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object