|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.doxia.module.itext.ITextFont
public class ITextFont
iText
wrapper object for font.
Font
Field Summary | |
---|---|
static java.lang.String |
BOLD
A bold font style |
static int |
DEFAULT_FONT_COLOR_BLUE
A default Black color definition |
static int |
DEFAULT_FONT_COLOR_GREEN
A default Black color definition |
static int |
DEFAULT_FONT_COLOR_RED
A default Black color definition |
static java.lang.String |
DEFAULT_FONT_NAME
A default font name |
static float |
DEFAULT_FONT_SIZE
A default font size |
static java.lang.String |
DEFAULT_FONT_STYLE
A default font style |
static java.lang.String |
ITALIC
A italic font style |
static java.lang.String |
NORMAL
A normal font style |
static java.lang.String |
UNDERLINE
An underline font style |
Constructor Summary | |
---|---|
ITextFont()
Default constructor |
Method Summary | |
---|---|
void |
addBold()
Add bold style to the current style |
void |
addItalic()
Add italic style to the current style |
void |
addUnderlined()
Add italic style to the current style |
static com.lowagie.text.Font |
getFont(int style,
float size,
java.awt.Color color)
Convenience method to get a defined font depending the wanted style and size. |
java.lang.String |
getFontColorBlue()
Return the font color blue |
java.lang.String |
getFontColorGreen()
Return the font color green |
java.lang.String |
getFontColorRed()
Return the font color red |
java.lang.String |
getFontName()
Return the font name |
java.lang.String |
getFontSize()
Return the font name |
java.lang.String |
getFontStyle()
Return the font style |
static com.lowagie.text.Font |
getMonoSpacedFont(int style,
float size,
java.awt.Color color)
Convenience method to get a defined MonoSpaced font depending the wanted style and size. |
static int |
getSectionFontSize(int sectionNumber)
Get a section font depending the section number. |
void |
removeBold()
Remove bold style to the current style |
void |
removeItalic()
Remove italic style to the current style |
void |
removeUnderlined()
Remove italic style to the current style |
void |
setColor(java.awt.Color color)
Set a new font color |
void |
setMonoSpaced(boolean monoSpaced)
Add monospaced style to the current style |
void |
setSize(float size)
Set a new font color |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NORMAL
public static final java.lang.String BOLD
public static final java.lang.String ITALIC
public static final java.lang.String UNDERLINE
public static final java.lang.String DEFAULT_FONT_NAME
public static final float DEFAULT_FONT_SIZE
public static final java.lang.String DEFAULT_FONT_STYLE
public static final int DEFAULT_FONT_COLOR_RED
public static final int DEFAULT_FONT_COLOR_GREEN
public static final int DEFAULT_FONT_COLOR_BLUE
Constructor Detail |
---|
public ITextFont()
Method Detail |
---|
public void addBold()
public void removeBold()
public void addItalic()
public void removeItalic()
public void addUnderlined()
public void removeUnderlined()
public void setMonoSpaced(boolean monoSpaced)
monoSpaced
- true for monospaced stylepublic void setColor(java.awt.Color color)
color
- a new colorpublic void setSize(float size)
size
- a new sizepublic java.lang.String getFontName()
public java.lang.String getFontStyle()
public java.lang.String getFontSize()
public java.lang.String getFontColorBlue()
public java.lang.String getFontColorGreen()
public java.lang.String getFontColorRed()
public static int getSectionFontSize(int sectionNumber)
sectionNumber
- a section number
public static com.lowagie.text.Font getMonoSpacedFont(int style, float size, java.awt.Color color)
style
- size
- color
-
public static com.lowagie.text.Font getFont(int style, float size, java.awt.Color color)
style
- size
- color
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |