Class Font
java.lang.Object
com.independentsoft.office.spreadsheet.Font
The Class Font.
-
Constructor Summary
ConstructorsConstructorDescriptionFont()Instantiates a new font.Font(InternalXMLStreamReader reader)Instantiates a new font. -
Method Summary
Modifier and TypeMethodDescriptionclone()intGets the character set.getColor()Gets the color.intGets the family.getName()Gets the name.Gets the run vertical alignment.Gets the scheme.doublegetSize()Gets the size.Gets the underline.booleanisBold()Checks if is bold.booleanChecks if is condense.booleanisExtend()Checks if is extend.booleanisItalic()Checks if is italic.booleanChecks if is outline.booleanisShadow()Checks if is shadow.booleanChecks if is strike through.voidsetBold(boolean bold)Sets the bold.voidsetCharacterSet(int characterSet)Sets the character set.voidsetColor(DataBarColor color)Sets the color.voidsetCondense(boolean condense)Sets the condense.voidsetExtend(boolean extend)Sets the extend.voidsetFamily(int family)Sets the family.voidsetItalic(boolean italic)Sets the italic.voidSets the name.voidsetOutline(boolean outline)Sets the outline.voidsetRunVerticalAlignment(RunVerticalAlignment runVerticalAlignment)Sets the run vertical alignment.voidsetScheme(FontScheme scheme)Sets the scheme.voidsetShadow(boolean shadow)Sets the shadow.voidsetSize(double size)Sets the size.voidsetStrikeThrough(boolean strikeThrough)Sets the strike through.voidsetUnderline(Underline underline)Sets the underline.toString()
-
Constructor Details
-
Font
public Font()Instantiates a new font. -
Font
Instantiates a new font.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
clone
-
toString
-
isBold
public boolean isBold()Checks if is bold.- Returns:
- true, if is bold
-
setBold
public void setBold(boolean bold)Sets the bold.- Parameters:
bold- the new bold
-
getCharacterSet
public int getCharacterSet()Gets the character set.- Returns:
- the character set
-
setCharacterSet
public void setCharacterSet(int characterSet)Sets the character set.- Parameters:
characterSet- the new character set
-
getColor
Gets the color.- Returns:
- the color
-
setColor
Sets the color.- Parameters:
color- the new color
-
isCondense
public boolean isCondense()Checks if is condense.- Returns:
- true, if is condense
-
setCondense
public void setCondense(boolean condense)Sets the condense.- Parameters:
condense- the new condense
-
isExtend
public boolean isExtend()Checks if is extend.- Returns:
- true, if is extend
-
setExtend
public void setExtend(boolean extend)Sets the extend.- Parameters:
extend- the new extend
-
getFamily
public int getFamily()Gets the family.- Returns:
- the family
-
setFamily
public void setFamily(int family)Sets the family.- Parameters:
family- the new family
-
isItalic
public boolean isItalic()Checks if is italic.- Returns:
- true, if is italic
-
setItalic
public void setItalic(boolean italic)Sets the italic.- Parameters:
italic- the new italic
-
getName
Gets the name.- Returns:
- the name
-
setName
Sets the name.- Parameters:
name- the new name
-
isOutline
public boolean isOutline()Checks if is outline.- Returns:
- true, if is outline
-
setOutline
public void setOutline(boolean outline)Sets the outline.- Parameters:
outline- the new outline
-
getScheme
Gets the scheme.- Returns:
- the scheme
-
setScheme
Sets the scheme.- Parameters:
scheme- the new scheme
-
isShadow
public boolean isShadow()Checks if is shadow.- Returns:
- true, if is shadow
-
setShadow
public void setShadow(boolean shadow)Sets the shadow.- Parameters:
shadow- the new shadow
-
isStrikeThrough
public boolean isStrikeThrough()Checks if is strike through.- Returns:
- true, if is strike through
-
setStrikeThrough
public void setStrikeThrough(boolean strikeThrough)Sets the strike through.- Parameters:
strikeThrough- the new strike through
-
getSize
public double getSize()Gets the size.- Returns:
- the size
-
setSize
public void setSize(double size)Sets the size.- Parameters:
size- the new size
-
getUnderline
Gets the underline.- Returns:
- the underline
-
setUnderline
Sets the underline.- Parameters:
underline- the new underline
-
getRunVerticalAlignment
Gets the run vertical alignment.- Returns:
- the run vertical alignment
-
setRunVerticalAlignment
Sets the run vertical alignment.- Parameters:
runVerticalAlignment- the new run vertical alignment
-