public class PageLabel
extends java.lang.Object
Note that a single PageLabel describes the label string for several pages all pages up until the first page covered by the next PageLabel, or the end of the document.
Also note that if a Document has any PageLabels, there must be one that starts at page index 0. This will be automatically created if the user does not supply one.
| Constructor and Description |
|---|
PageLabel(int start,
NumberStyle ns)
Convenience constructor creates a range with no prefix starting with number 1.
|
PageLabel(int start,
NumberStyle ns,
java.lang.String p,
int first)
Public constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
int |
getEndPageIndex()
The end index for the page label range
|
int |
getFirstNumberInRange()
The first number used in the page label range.
|
NumberStyle |
getNumberStyle()
The numbering style for the page label range
|
java.lang.String |
getPrefix()
The prefix string for the page label range
|
int |
getStartPageIndex()
The start index for the page label range
|
void |
setFirstNumberInRange(int arg0)
The first number used in the page label range
|
void |
setNumberStyle(NumberStyle arg0)
The numbering style for the page label range
|
void |
setPrefix(java.lang.String arg0)
The prefix string for the page label range
|
void |
setStartPageIndex(int ndx)
The start index for the page label range
|
java.lang.String |
toString() |
public PageLabel(int start,
NumberStyle ns,
java.lang.String p,
int first)
start - Starting page index in the Document for this rangens - Numbering style for this rangep - Prefix string for this rangefirst - First number appearing on a page in this rangepublic PageLabel(int start,
NumberStyle ns)
start - Starting page index in the Document for this rangens - Numbering style for this rangepublic void delete()
public java.lang.String toString()
toString in class java.lang.Objectpublic int getStartPageIndex()
public void setStartPageIndex(int ndx)
public int getEndPageIndex()
You cannot set the end index for a range; you must change the start index for the following range. A value of -1 means the end index for this PageLabel is unknown.
public java.lang.String getPrefix()
public void setPrefix(java.lang.String arg0)
public int getFirstNumberInRange()
public void setFirstNumberInRange(int arg0)
public NumberStyle getNumberStyle()
public void setNumberStyle(NumberStyle arg0)