|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The Font Format interface.
| Inner Class Summary | |
static class |
FontFormat.EProperty
Font format property enumeration |
static class |
FontFormat.EUnderline
Underline enumeration |
| Field Summary | |
static FontFormat.EProperty |
eBold
The bold font attribute. |
static FontFormat.EProperty |
eColor
The font color attribute. |
static FontFormat.EProperty |
eItalic
The italic font attribute. |
static FontFormat.EProperty |
eName
The font name attribute. |
static FontFormat.EProperty |
eOutline
The outline font attribute. |
static FontFormat.EProperty |
eShadow
The shadow font attribute. |
static FontFormat.EProperty |
eSize
The font size attribute. |
static FontFormat.EProperty |
eStrikethrough
The strikeout font attribute. |
static FontFormat.EProperty |
eUnderline
The underline font attribute. |
static FontFormat.EUnderline |
eUnderlineNone
No Underline |
static FontFormat.EUnderline |
eUnderlineSingle
Single Underline |
| Method Summary | |
int |
getColor()
Returns the color used to display the font. |
java.lang.String |
getName()
Returns the name of the font. |
double |
getSizePoints()
Returns the size of the font in points. |
int |
getSizeTwips()
Returns the size of the font in twips. |
FontFormat.EUnderline |
getUnderline()
Gets the underlinet. |
boolean |
isBold()
Returns whether the font is bold. |
boolean |
isColorAuto()
Returns whether color is auto. |
boolean |
isItalic()
Returns whether the font is italic. |
boolean |
isOutline()
Returns whether the font is outline. |
boolean |
isShadow()
Returns whether the font is shadow. |
boolean |
isStrikethrough()
Returns whether the font is strikeout. |
void |
setBold(boolean bold)
Sets the bold attribute of the font. |
void |
setColor(int color)
Sets the color used to display the font. |
void |
setColorAuto()
Sets whether color ia auto. |
void |
setItalic(boolean italic)
Sets the italic attribute of the font. |
void |
setName(java.lang.String name)
Sets the font name. |
void |
setOutline(boolean outline)
Sets the outline attribute of the font. |
void |
setShadow(boolean shadow)
Sets the shadow attribute of the font. |
void |
setSizePoints(double size)
Sets the font size in points. |
void |
setSizeTwips(int size)
Sets the font size in twips. |
void |
setStrikethrough(boolean strikethrough)
Sets the strikeout attribute of the font. |
void |
setUnderline(FontFormat.EUnderline underline)
Sets the underline. |
| Methods inherited from interface com.f1j.util.FormatBase |
isUndefined,
isUndefined,
isUsed,
setUndefined,
undefineAll,
useAll |
| Field Detail |
public static final FontFormat.EProperty eBold
public static final FontFormat.EProperty eColor
public static final FontFormat.EProperty eItalic
public static final FontFormat.EProperty eName
public static final FontFormat.EProperty eOutline
public static final FontFormat.EProperty eShadow
public static final FontFormat.EProperty eSize
public static final FontFormat.EProperty eStrikethrough
public static final FontFormat.EProperty eUnderline
public static final FontFormat.EUnderline eUnderlineNone
public static final FontFormat.EUnderline eUnderlineSingle
| Method Detail |
public int getColor()
setColor(int)public java.lang.String getName()
setName(java.lang.String)public double getSizePoints()
setSizePoints(double),
getSizeTwips()public int getSizeTwips()
getSizePoints(),
setSizeTwips(int)public FontFormat.EUnderline getUnderline()
public boolean isBold()
true = font is bold.setBold(boolean)public boolean isColorAuto()
public boolean isItalic()
true = font is italic.setItalic(boolean)public boolean isOutline()
true = font is outline.setOutline(boolean)public boolean isShadow()
true = font is shadow.setShadow(boolean)public boolean isStrikethrough()
true = font is strikeout.setStrikethrough(boolean)public void setBold(boolean bold)
bold - boolean. true = set font to bold.isBold()public void setColor(int color)
color - an integer describing the font color as a four-byte integer in the
format 0x00RRGGBB.getColor()public void setColorAuto()
public void setItalic(boolean italic)
italic - boolean. true = set font to italic.isItalic()public void setName(java.lang.String name)
name - a string that designates the font name.getName()public void setOutline(boolean outline)
outline - boolean. true = set font to outline.isOutline()public void setShadow(boolean shadow)
shadow - boolean. true = set font to shadow.isShadow()
public void setSizePoints(double size)
throws InvalidArgumentException,
F1Exception
size - an integer indicating the font size.getSizePoints(),
setSizeTwips(int)
public void setSizeTwips(int size)
throws InvalidArgumentException,
F1Exception
size - an integer indicating the font size.setSizePoints(double),
getSizeTwips()public void setStrikethrough(boolean strikethrough)
strikethrough - boolean. true = set font to strikeout.isStrikethrough()public void setUnderline(FontFormat.EUnderline underline)
underline - The EUnderline value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||