Class FontImpl

  • All Implemented Interfaces:
    Font, java.io.Serializable
    Direct Known Subclasses:
    EditableFontImpl

    public class FontImpl
    extends java.lang.Object
    implements Font, java.io.Serializable
    Since:
    3.0.0
    Author:
    dennis
    See Also:
    Serialized Form
    • Method Detail

      • getFontName

        public java.lang.String getFontName()
        Specified by:
        getFontName in interface Font
        Returns:
        a font's name like "Calibri".
      • getNative

        public SFont getNative()
      • getColor

        public Color getColor()
        Specified by:
        getColor in interface Font
        Returns:
        a font's color
      • 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
      • getFontHeight

        public int getFontHeight()
      • isItalic

        public boolean isItalic()
        Specified by:
        isItalic in interface Font
        Returns:
        true if the font is italic
      • isStrikeout

        public boolean isStrikeout()
        Specified by:
        isStrikeout in interface Font
        Returns:
        true if the font is strike-out.
      • toString

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

        public int getFontHeightInPoint()
        Specified by:
        getFontHeightInPoint in interface Font
        Returns:
        a font's height in pixel