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 boolean
equals(Object obj)
Font.Boldweight
getBoldweight()
Color
getColor()
int
getFontHeight()
int
getFontHeightInPoint()
String
getFontName()
SFont
getNative()
ModelRef<SFont>
getRef()
Font.TypeOffset
getTypeOffset()
Font.Underline
getUnderline()
int
hashCode()
boolean
isItalic()
boolean
isStrikeout()
String
toString()
-
-
-
Method Detail
-
getFontName
public String getFontName()
- Specified by:
getFontName
in interfaceFont
- Returns:
- a font's name like "Calibri".
-
getNative
public SFont getNative()
-
getBoldweight
public Font.Boldweight getBoldweight()
- Specified by:
getBoldweight
in interfaceFont
- Returns:
- a font's bold style.
-
getFontHeight
public int getFontHeight()
-
isItalic
public boolean isItalic()
-
isStrikeout
public boolean isStrikeout()
- Specified by:
isStrikeout
in interfaceFont
- Returns:
- true if the font is strike-out.
-
getTypeOffset
public Font.TypeOffset getTypeOffset()
- Specified by:
getTypeOffset
in interfaceFont
-
getUnderline
public Font.Underline getUnderline()
- Specified by:
getUnderline
in interfaceFont
- Returns:
- the style of a font's underline
-
getFontHeightInPoint
public int getFontHeightInPoint()
- Specified by:
getFontHeightInPoint
in interfaceFont
- Returns:
- a font's height in pixel
-
-