Style Intelligence v12.0

inetsoft.report.lens
Class SingleUpperLetterHeadingFormat

java.lang.Object
  extended by inetsoft.report.lens.LowerLetterHeadingFormat
      extended by inetsoft.report.lens.SingleUpperLetterHeadingFormat
All Implemented Interfaces:
HeadingFormat

public class SingleUpperLetterHeadingFormat
extends LowerLetterHeadingFormat

The UpperLetterHeadingFormat is a implementation of the HeadingFormat interface. It will format to number to A, B, C ...


Constructor Summary
SingleUpperLetterHeadingFormat()
           
 
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

SingleUpperLetterHeadingFormat

public SingleUpperLetterHeadingFormat()
Method Detail

getSeparator

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

Specified by:
getSeparator in interface HeadingFormat
Overrides:
getSeparator in class LowerLetterHeadingFormat

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
Overrides:
format in class LowerLetterHeadingFormat
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
Overrides:
getPrefix in class LowerLetterHeadingFormat

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