public interface Font
Modifier and Type | Interface and Description |
---|---|
static class |
Font.Underline
Underline attributes that can be applied.
|
Modifier and Type | Method and Description |
---|---|
int |
getCharset()
Returns the charset
|
String |
getColor()
Returns the color
|
int |
getFamily()
Returns the family
|
String |
getName()
Returns the name
|
String |
getScheme()
Returns the scheme
|
int |
getSize()
Returns the size
|
Font.Underline |
getUnderline()
Returns the underline
|
boolean |
isBold()
Returns whether enable the bold or not
|
boolean |
isCondense()
Returns whether enable the condense or not
|
boolean |
isExtend()
Returns whether enable the extend or not
|
boolean |
isItalic()
Returns whether enable the italic or not
|
boolean |
isOutline()
Returns whether enable the outline or not
|
boolean |
isShadow()
Returns whether enable the shadow or not
|
boolean |
isStrike()
Returns whether enable the strike or not
|
boolean |
isSubscript()
Returns whether enable the subscript or not
|
boolean |
isSuperscript()
Returns whether enable the superscript or not
|
void |
setBold(boolean enable)
Sets to enable the bold or not
|
void |
setCharset(int charset)
Sets the charset
|
void |
setColor(String color)
Sets the color
|
void |
setCondense(boolean enable)
Sets to enable the condense or not
|
void |
setExtend(boolean enable)
Sets to enable the extend or not
|
void |
setFamily(int family)
Sets the family
|
void |
setItalic(boolean enable)
Sets to enable the italic or not
|
void |
setName(String name)
Sets the name
|
void |
setOutline(boolean enable)
Sets to enable the outline or not
|
void |
setScheme(String scheme)
Sets the scheme
|
void |
setShadow(boolean enable)
Sets to enable the shadow or not
|
void |
setSize(int size)
Sets the size
|
void |
setStrike(boolean enable)
sets to enable the strike or not
|
void |
setSubscript(boolean enable)
Sets to enable the subscript or not
|
void |
setSuperscript(boolean enable)
Sets to enable the superscript or not
|
void |
setUnderline(Font.Underline underline)
Sets the underline
|
void setName(String name)
name
- void setCharset(int charset)
charset
- void setFamily(int family)
family
- void setSize(int size)
size
- void setColor(String color)
color
- void setBold(boolean enable)
enable
- void setItalic(boolean enable)
enable
- void setStrike(boolean enable)
enable
- void setOutline(boolean enable)
enable
- void setShadow(boolean enable)
enable
- void setCondense(boolean enable)
enable
- void setExtend(boolean enable)
enable
- void setSuperscript(boolean enable)
enable
- void setSubscript(boolean enable)
enable
- void setUnderline(Font.Underline underline)
underline
- either Font.Underline.None
,
Font.Underline.Single
,
Font.Underline.Double
,
Font.Underline.SingleAccounting
, or
Font.Underline.DoubleAccounting
.void setScheme(String scheme)
scheme
- String getName()
int getCharset()
int getFamily()
int getSize()
String getColor()
boolean isBold()
boolean isItalic()
boolean isStrike()
boolean isOutline()
boolean isShadow()
boolean isCondense()
boolean isExtend()
boolean isSuperscript()
boolean isSubscript()
Font.Underline getUnderline()
Font.Underline
String getScheme()
Copyright © 2018. All rights reserved.