Package io.keikai.api.model.impl
Class FontImpl
- java.lang.Object
-
- io.keikai.api.model.impl.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
-
-
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(java.lang.Object obj)Font.BoldweightgetBoldweight()ColorgetColor()intgetFontHeight()intgetFontHeightInPoint()java.lang.StringgetFontName()SFontgetNative()ModelRef<SFont>getRef()Font.TypeOffsetgetTypeOffset()Font.UnderlinegetUnderline()inthashCode()booleanisItalic()booleanisStrikeout()java.lang.StringtoString()
-
-
-
Method Detail
-
getFontName
public java.lang.String getFontName()
- Specified by:
getFontNamein interfaceFont- Returns:
- a font's name like "Calibri".
-
getNative
public SFont getNative()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getFontHeightInPoint
public int getFontHeightInPoint()
- Specified by:
getFontHeightInPointin interfaceFont- Returns:
- a font's height in pixel
-
-