Package io.keikai.api.model.impl
Class EditableFontImpl
- java.lang.Object
-
- io.keikai.api.model.impl.FontImpl
-
- io.keikai.api.model.impl.EditableFontImpl
-
- All Implemented Interfaces:
EditableFont
,Font
,Serializable
public class EditableFontImpl extends FontImpl implements EditableFont
- 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
-
-
Constructor Summary
Constructors Constructor Description EditableFontImpl(ModelRef<SBook> book, ModelRef<SFont> font)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyAttributeFrom(Font src)
boolean
equals(Object obj)
int
hashCode()
void
setBoldweight(Font.Boldweight boldweight)
void
setColor(Color color)
void
setFontHeight(int twip)
void
setFontHeightInPoint(int point)
void
setFontName(String fontName)
Set the font name of cells.void
setItalic(boolean italic)
void
setStrikeout(boolean strikeout)
void
setUnderline(Font.Underline underline)
-
Methods inherited from class io.keikai.api.model.impl.FontImpl
getBoldweight, getColor, getFontHeight, getFontHeightInPoint, getFontName, getNative, getRef, getTypeOffset, getUnderline, isItalic, isStrikeout, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.keikai.api.model.Font
getBoldweight, getColor, getFontHeightInPoint, getFontName, getTypeOffset, getUnderline, isItalic, isStrikeout
-
-
-
-
Method Detail
-
copyAttributeFrom
public void copyAttributeFrom(Font src)
-
setFontName
public void setFontName(String fontName)
Description copied from interface:EditableFont
Set the font name of cells.- Specified by:
setFontName
in interfaceEditableFont
- Parameters:
fontName
- font's name, ,e.g "Calibri"
-
setBoldweight
public void setBoldweight(Font.Boldweight boldweight)
- Specified by:
setBoldweight
in interfaceEditableFont
-
setItalic
public void setItalic(boolean italic)
- Specified by:
setItalic
in interfaceEditableFont
-
setStrikeout
public void setStrikeout(boolean strikeout)
- Specified by:
setStrikeout
in interfaceEditableFont
-
setUnderline
public void setUnderline(Font.Underline underline)
- Specified by:
setUnderline
in interfaceEditableFont
-
setFontHeight
public void setFontHeight(int twip)
- Specified by:
setFontHeight
in interfaceEditableFont
-
setColor
public void setColor(Color color)
- Specified by:
setColor
in interfaceEditableFont
-
setFontHeightInPoint
public void setFontHeightInPoint(int point)
- Specified by:
setFontHeightInPoint
in interfaceEditableFont
-
-