Style Intelligence v12.0

inetsoft.report.lens
Class DefaultHeadingFormat

java.lang.Object
  extended by inetsoft.report.lens.DefaultHeadingFormat
All Implemented Interfaces:
HeadingFormat, Serializable

public class DefaultHeadingFormat
extends Object
implements HeadingFormat, Serializable

The DefaultHeadingFormat is a default implementation of the HeadingFormat interface.

See Also:
Serialized Form

Constructor Summary
DefaultHeadingFormat()
           
 
Method Summary
 String format(int number)
          Format the number of the heading.
 String getPrefix()
          prefix text which will be displayed at the beginning of the heading number.
 String getSeparator()
          Get the separator of heading number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHeadingFormat

public DefaultHeadingFormat()
Method Detail

getSeparator

public String getSeparator()
Get the separator of heading number.

Specified by:
getSeparator in interface HeadingFormat

format

public String format(int number)
Format the number of the heading. The input to the method is digit. The output can be any string, for example: I, II, III or a, b, c etc. which will be displayed at the beginning of the heading text.

Specified by:
format in interface HeadingFormat
Parameters:
number - heading number.
Returns:
formatted heading number.

getPrefix

public String getPrefix()
prefix text which will be displayed at the beginning of the heading number.

Specified by:
getPrefix in interface HeadingFormat

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