inetsoft.report.lens
Class RomanHeadingFormat
java.lang.Object
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.
|
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 |
RomansNumArray
public static final String[] RomansNumArray
ArabicsNumArray
public static final int[] ArabicsNumArray
RomanHeadingFormat
public RomanHeadingFormat()
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