org.apache.maven.doxia.module.itext
public class ITextFont extends Object
iText wrapper object for font.
Version: $Id: ITextFont.java 496703 2007-01-16 14:27:31Z vsiveton $
See Also: com.lowagie.text.Font
| Field Summary | |
|---|---|
| static 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 String | DEFAULT_FONT_NAME A default font name |
| static float | DEFAULT_FONT_SIZE A default font size |
| static String | DEFAULT_FONT_STYLE A default font style |
| static String | ITALIC A italic font style |
| static String | NORMAL A normal font style |
| static 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 Font | getFont(int style, float size, Color color)
Convenience method to get a defined font depending the wanted style and size.
|
| String | getFontColorBlue()
Return the font color blue
|
| String | getFontColorGreen()
Return the font color green
|
| String | getFontColorRed()
Return the font color red
|
| String | getFontName()
Return the font name
|
| String | getFontSize()
Return the font name
|
| String | getFontStyle()
Return the font style
|
| static Font | getMonoSpacedFont(int style, float size, 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(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
|
Parameters: style size color
Returns: a font
Returns: the font color blue
Returns: the font color green
Returns: the font color red
Returns: the font name
Returns: the font name
Returns: the font style
Parameters: style size color
Returns: a font
Parameters: sectionNumber a section number
Returns: a font
Parameters: color a new color
Parameters: monoSpaced true for monospaced style
Parameters: size a new size