Style Intelligence v12.0

inetsoft.report.lens
Class RomanHeadingFormat

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

public class RomanHeadingFormat
extends Object
implements HeadingFormat

The RomanHeadingFormat is a implementation of the HeadingFormat interface. It will format to Arabic number to Roman number.


Field Summary
static int[] ArabicsNumArray
           
static String[] RomansNumArray
           
 
Constructor Summary
RomanHeadingFormat()
           
 
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
 

Field Detail

RomansNumArray

public static final String[] RomansNumArray

ArabicsNumArray

public static final int[] ArabicsNumArray
Constructor Detail

RomanHeadingFormat

public RomanHeadingFormat()
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.