public class EditableFontImpl extends FontImpl implements EditableFont
Font.Boldweight, Font.TypeOffset, Font.Underline
Constructor and Description |
---|
EditableFontImpl(ModelRef<SBook> book,
ModelRef<SFont> font) |
Modifier and Type | Method and 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) |
getBoldweight, getColor, getFontHeight, getFontHeightInPoint, getFontName, getNative, getRef, getTypeOffset, getUnderline, isItalic, isStrikeout, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBoldweight, getColor, getFontHeight, getFontHeightInPoint, getFontName, getTypeOffset, getUnderline, isItalic, isStrikeout
public void copyAttributeFrom(Font src)
public void setFontName(String fontName)
EditableFont
setFontName
in interface EditableFont
fontName
- font's name, ,e.g "Calibri"public void setBoldweight(Font.Boldweight boldweight)
setBoldweight
in interface EditableFont
public void setItalic(boolean italic)
setItalic
in interface EditableFont
public void setStrikeout(boolean strikeout)
setStrikeout
in interface EditableFont
public void setUnderline(Font.Underline underline)
setUnderline
in interface EditableFont
public void setFontHeight(int twip)
setFontHeight
in interface EditableFont
public void setColor(Color color)
setColor
in interface EditableFont
public void setFontHeightInPoint(int point)
setFontHeightInPoint
in interface EditableFont
Copyright © 2020. All rights reserved.