Style Intelligence v12.0

inetsoft.report
Class TOC.Modern

java.lang.Object
  extended by inetsoft.report.TOC
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class inetsoft.report.TOC
TOC.Classic, TOC.Default, TOC.Distinctive, TOC.Fancy, TOC.Formal, TOC.Modern, TOC.Simple
 
Field Summary
 
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.
 
Method Summary
 int getAlignment(int level)
          Get the heading alignment.
 Font getFont(int level)
          Get the font for the toc level.
 int getSeparator(int level)
          Get the separator for the toc level.
 boolean isPageNumberRight()
          Check if page number should be right aligned.
 String toString()
           
 
Methods inherited from class inetsoft.report.TOC
clone, getBackground, getBaseFont, getForeground, getIndent, getLeader, getLevelSpacings, getPageFormat, setBackground, setBaseFont, setForeground, setLevelSpacings, setPageFormat
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TOC.Modern

public TOC.Modern()
Create a Modern toc.

Method Detail

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

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.