org.foray.fotree.fo.obj
Class PageNumberGenerator
java.lang.Object
org.foray.fotree.fo.obj.PageNumberGenerator
- All Implemented Interfaces:
- org.axsl.common.PositiveIntegerFormatter
public class PageNumberGenerator
- extends Object
- implements org.axsl.common.PositiveIntegerFormatter
This class uses the 'format', 'groupingSeparator', 'groupingSize',
and 'letterValue' properties on fo:page-sequence to return a String
corresponding to the supplied integer page number.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageNumberGenerator
public PageNumberGenerator(String format,
char groupingSeparator,
int groupingSize)
- Constructor.
- Parameters:
format
- The format which should be used to create page numbers by
this generator.groupingSeparator
- The grouping separator which should be used.groupingSize
- The grouping size which should be used.
makeFormattedPageNumber
public String makeFormattedPageNumber(int number)
- Make an formatted page number.
- Parameters:
number
- The input number from which the page number should be
created.
- Returns:
- The formatted page number.
getType
public org.axsl.common.FormattedIntegerType getType()
- Specified by:
getType
in interface org.axsl.common.PositiveIntegerFormatter
Copyright © 2017. All rights reserved.