|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jfree.workbook.FontStyle
Represents a font within a style.
Field Summary | |
protected boolean |
bold
Bold. |
protected boolean |
italic
Italic. |
protected java.lang.String |
name
The font name. |
protected int |
size
The size. |
protected boolean |
strikethrough
Strikethrough. |
protected boolean |
underline
Underline. |
Constructor Summary | |
FontStyle(java.lang.String name)
Constructs a font (12pt) with the given name. |
|
FontStyle(java.lang.String name,
int size)
Constructs a font with the given name and point size. |
|
FontStyle(java.lang.String name,
int size,
boolean bold,
boolean italic,
boolean underline,
boolean strikethrough)
Constructs a font with all attributes as specified. |
Method Summary | |
java.lang.String |
getName()
Returns the font name. |
int |
getSize()
Returns the font size. |
boolean |
isBold()
Returns a flag indicating whether or not the bold attribute is set. |
boolean |
isItalic()
Returns a flag indicating whether or not the italic attribute is set. |
boolean |
isStrikethrough()
Returns a flag indicating whether or not the strikethrough attribute is set. |
boolean |
isUnderline()
Returns a flag indicating whether or not the underline attribute is set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String name
protected int size
protected boolean bold
protected boolean italic
protected boolean underline
protected boolean strikethrough
Constructor Detail |
public FontStyle(java.lang.String name)
name
- the font name (not validated).public FontStyle(java.lang.String name, int size)
name
- the font name (not validated).size
- the point size.public FontStyle(java.lang.String name, int size, boolean bold, boolean italic, boolean underline, boolean strikethrough)
name
- the font name (not validated).size
- the point size.bold
- flag for bold attribute.italic
- flag for italic attribute.underline
- flag for underline attribute.strikethrough
- flag for strikethrough attribute.Method Detail |
public java.lang.String getName()
public int getSize()
public boolean isBold()
public boolean isItalic()
public boolean isUnderline()
public boolean isStrikethrough()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |