Package io.keikai.api.model.impl
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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.keikai.api.model.Font
Font.Boldweight, Font.TypeOffset, Font.Underline
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Font.BoldweightgetBoldweight()ColorgetColor()intgetFontHeight()intgetFontHeightInPoint()StringgetFontName()SFontgetNative()ModelRef<SFont>getRef()Font.TypeOffsetgetTypeOffset()Font.UnderlinegetUnderline()inthashCode()booleanisItalic()booleanisStrikeout()StringtoString()
-
-
-
Method Detail
-
getFontName
public String getFontName()
- Specified by:
getFontNamein interfaceFont- Returns:
- a font's name like "Calibri".
-
getNative
public SFont getNative()
-
getBoldweight
public Font.Boldweight getBoldweight()
- Specified by:
getBoldweightin interfaceFont- Returns:
- a font's bold style.
-
getFontHeight
public int getFontHeight()
-
isItalic
public boolean isItalic()
-
isStrikeout
public boolean isStrikeout()
- Specified by:
isStrikeoutin interfaceFont- Returns:
- true if the font is strike-out.
-
getTypeOffset
public Font.TypeOffset getTypeOffset()
- Specified by:
getTypeOffsetin interfaceFont
-
getUnderline
public Font.Underline getUnderline()
- Specified by:
getUnderlinein interfaceFont- Returns:
- the style of a font's underline
-
getFontHeightInPoint
public int getFontHeightInPoint()
- Specified by:
getFontHeightInPointin interfaceFont- Returns:
- a font's height in pixel
-
-