Class FontImpl

java.lang.Object
io.keikai.api.model.impl.FontImpl
All Implemented Interfaces:
Font, Serializable
Direct Known Subclasses:
EditableFontImpl

public class FontImpl extends Object implements Font, Serializable
Since:
3.0.0
Author:
dennis
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getFontName

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

      public SFont getNative()
    • getRef

      public ModelRef<SFont> getRef()
    • getColor

      public Color getColor()
      Specified by:
      getColor in interface Font
      Returns:
      a font's color
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getBoldweight

      public Font.Boldweight getBoldweight()
      Specified by:
      getBoldweight in interface Font
      Returns:
      a font's bold style.
    • 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.
    • getTypeOffset

      public Font.TypeOffset getTypeOffset()
      Specified by:
      getTypeOffset in interface Font
    • getUnderline

      public Font.Underline getUnderline()
      Specified by:
      getUnderline in interface Font
      Returns:
      the style of a font's underline
    • toString

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

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