inetsoft.report
Class TOC.Modern
java.lang.Object
inetsoft.report.TOC
inetsoft.report.TOC.Modern
- All Implemented Interfaces:
- Serializable, Cloneable
- Enclosing class:
- TOC
public static class TOC.Modern
- extends TOC
'Modern' table of contents style.
- See Also:
- Serialized Form
| Fields inherited from class inetsoft.report.TOC |
background, CLASSIC, DEFAULT, defFn, DISTINCTIVE, FANCY, foreground, FORMAL, formatStr, MODERN, SIMPLE |
|
Constructor Summary |
TOC.Modern()
Create a Modern toc. |
| Methods inherited from class inetsoft.report.TOC |
clone, getBackground, getBaseFont, getForeground, getIndent, getLeader, getLevelSpacings, getPageFormat, setBackground, setBaseFont, setForeground, setLevelSpacings, setPageFormat |
TOC.Modern
public TOC.Modern()
- Create a Modern toc.
getAlignment
public int getAlignment(int level)
- Description copied from class:
TOC
- Get the heading alignment.
- Overrides:
getAlignment in class TOC
- Parameters:
level - the heading level. Starts from 1.
- Returns:
- alignment flag.
getFont
public Font getFont(int level)
- Description copied from class:
TOC
- Get the font for the toc level.
- Overrides:
getFont in class TOC
- Parameters:
level - the heading level. Starts from 1.
- Returns:
- heading font.
getSeparator
public int getSeparator(int level)
- Description copied from class:
TOC
- Get the separator for the toc level. If a value other than NONE
is returned, a separator is added below every heading of the
specified level.
- Overrides:
getSeparator in class TOC
- Parameters:
level - the heading level. Starts from 1.
- Returns:
- heading separator.
isPageNumberRight
public boolean isPageNumberRight()
- Description copied from class:
TOC
- Check if page number should be right aligned.
- Overrides:
isPageNumberRight in class TOC
- Returns:
- true if page number is right aligned.
toString
public String toString()
- Overrides:
toString in class Object