public class SimplePageDecoration extends java.lang.Object implements PageDecoration
Typically the page number will be in either the header or footer, but not in both. Often the page number is the only thing that changes from page to page in a header. Use this class for a header or footer which does not display the page number.
Constructor and Description |
---|
SimplePageDecoration(Print print)
Constructs a BasicPageDecoration.
|
Modifier and Type | Method and Description |
---|---|
Print |
createPrint(PageNumber pageNumber)
Returns a decorator Print for the page with the given page number, or
null if no decoration is provided for the given page.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
public SimplePageDecoration(Print print)
print
- the decoration which will appear on every page.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public Print createPrint(PageNumber pageNumber)
PageDecoration
createPrint
in interface PageDecoration
pageNumber
- the page number of the page being decorated.