Package io.keikai.model.impl
Class ImmutableFontImpl
- java.lang.Object
-
- io.keikai.model.impl.AbstractFontAdv
-
- io.keikai.model.impl.ImmutableFontImpl
-
- All Implemented Interfaces:
SFont
,Serializable
public class ImmutableFontImpl extends AbstractFontAdv
- Since:
- 5.3.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.keikai.model.SFont
SFont.Boldweight, SFont.TypeOffset, SFont.Underline
-
-
Field Summary
Fields Modifier and Type Field Description static SFont
BLANK_FONT
-
Constructor Summary
Constructors Constructor Description ImmutableFontImpl()
ImmutableFontImpl(String fontColor, boolean bold, boolean fontItalic, boolean fontStrikeout, SFont.Underline fontUnderline)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyFrom(SFont src)
boolean
equals(Object other)
SFont.Boldweight
getBoldweight()
SColor
getColor()
int
getHeightPoints()
String
getName()
SFont.TypeOffset
getTypeOffset()
SFont.Underline
getUnderline()
int
hashCode()
boolean
isItalic()
boolean
isOverrideBold()
boolean
isOverrideColor()
boolean
isOverrideHeightPoints()
boolean
isOverrideItalic()
boolean
isOverrideName()
boolean
isOverrideStrikeout()
boolean
isOverrideTypeOffset()
boolean
isOverrideUnderline()
boolean
isStrikeout()
void
setBoldweight(SFont.Boldweight fontBoldweight)
void
setColor(SColor fontColor)
void
setHeightPoints(int fontHeightPoint)
void
setItalic(boolean fontItalic)
void
setName(String fontName)
void
setOverrideBold(boolean overrideBold)
void
setOverrideColor(boolean overrideColor)
void
setOverrideHeightPoints(boolean overrideHeightPoints)
void
setOverrideItalic(boolean overrideItalic)
void
setOverrideName(boolean overrideName)
void
setOverrideStrikeout(boolean overrideStrikeout)
void
setOverrideTypeOffset(boolean overrideTypeOffset)
void
setOverrideUnderline(boolean overrideUnderline)
void
setStrikeout(boolean fontStrikeout)
void
setTypeOffset(SFont.TypeOffset fontTypeOffset)
void
setUnderline(SFont.Underline fontUnderline)
-
-
-
Field Detail
-
BLANK_FONT
public static final SFont BLANK_FONT
-
-
Constructor Detail
-
ImmutableFontImpl
public ImmutableFontImpl()
-
ImmutableFontImpl
public ImmutableFontImpl(String fontColor, boolean bold, boolean fontItalic, boolean fontStrikeout, SFont.Underline fontUnderline)
-
-
Method Detail
-
getName
public String getName()
- Returns:
- a font's name like "Calibri".
-
setName
public void setName(String fontName)
-
getColor
public SColor getColor()
- Returns:
- a font's color
-
setColor
public void setColor(SColor fontColor)
-
getBoldweight
public SFont.Boldweight getBoldweight()
- Returns:
- a font's bold style.
-
setBoldweight
public void setBoldweight(SFont.Boldweight fontBoldweight)
-
getHeightPoints
public int getHeightPoints()
- Returns:
- a font height point
-
setHeightPoints
public void setHeightPoints(int fontHeightPoint)
-
isItalic
public boolean isItalic()
- Returns:
- true if the font is italic
-
setItalic
public void setItalic(boolean fontItalic)
-
isStrikeout
public boolean isStrikeout()
- Returns:
- true if the font is strike-out.
-
setStrikeout
public void setStrikeout(boolean fontStrikeout)
-
getTypeOffset
public SFont.TypeOffset getTypeOffset()
- Returns:
-
setTypeOffset
public void setTypeOffset(SFont.TypeOffset fontTypeOffset)
-
getUnderline
public SFont.Underline getUnderline()
- Returns:
- the style of a font's underline
-
setUnderline
public void setUnderline(SFont.Underline fontUnderline)
-
copyFrom
public void copyFrom(SFont src)
-
isOverrideName
public boolean isOverrideName()
- Specified by:
isOverrideName
in classAbstractFontAdv
-
setOverrideName
public void setOverrideName(boolean overrideName)
- Specified by:
setOverrideName
in classAbstractFontAdv
-
isOverrideColor
public boolean isOverrideColor()
- Specified by:
isOverrideColor
in classAbstractFontAdv
-
setOverrideColor
public void setOverrideColor(boolean overrideColor)
- Specified by:
setOverrideColor
in classAbstractFontAdv
-
isOverrideBold
public boolean isOverrideBold()
- Specified by:
isOverrideBold
in classAbstractFontAdv
-
setOverrideBold
public void setOverrideBold(boolean overrideBold)
- Specified by:
setOverrideBold
in classAbstractFontAdv
-
isOverrideItalic
public boolean isOverrideItalic()
- Specified by:
isOverrideItalic
in classAbstractFontAdv
-
setOverrideItalic
public void setOverrideItalic(boolean overrideItalic)
- Specified by:
setOverrideItalic
in classAbstractFontAdv
-
isOverrideStrikeout
public boolean isOverrideStrikeout()
- Specified by:
isOverrideStrikeout
in classAbstractFontAdv
-
setOverrideStrikeout
public void setOverrideStrikeout(boolean overrideStrikeout)
- Specified by:
setOverrideStrikeout
in classAbstractFontAdv
-
isOverrideUnderline
public boolean isOverrideUnderline()
- Specified by:
isOverrideUnderline
in classAbstractFontAdv
-
setOverrideUnderline
public void setOverrideUnderline(boolean overrideUnderline)
- Specified by:
setOverrideUnderline
in classAbstractFontAdv
-
isOverrideHeightPoints
public boolean isOverrideHeightPoints()
- Specified by:
isOverrideHeightPoints
in classAbstractFontAdv
-
setOverrideHeightPoints
public void setOverrideHeightPoints(boolean overrideHeightPoints)
- Specified by:
setOverrideHeightPoints
in classAbstractFontAdv
-
isOverrideTypeOffset
public boolean isOverrideTypeOffset()
- Specified by:
isOverrideTypeOffset
in classAbstractFontAdv
-
setOverrideTypeOffset
public void setOverrideTypeOffset(boolean overrideTypeOffset)
- Specified by:
setOverrideTypeOffset
in classAbstractFontAdv
-
-