public class PageNumberPageDecoration extends java.lang.Object implements PageDecoration
Modifier and Type | Field and Description |
---|---|
(package private) int |
align |
(package private) org.eclipse.swt.graphics.FontData |
fontData |
(package private) PageNumberFormat |
format |
(package private) org.eclipse.swt.graphics.RGB |
rgb |
Constructor and Description |
---|
PageNumberPageDecoration()
Constructs a PageNumberPageDecoration with default font, alignment, and
page number format.
|
PageNumberPageDecoration(int align)
Constructs a PageNumberPageDecoration with the given alignment.
|
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 |
getAlign()
Returns the horizontal text alignment.
|
org.eclipse.swt.graphics.FontData |
getFontData()
Returns the font.
|
PageNumberFormat |
getFormat()
Returns the page number format.
|
org.eclipse.swt.graphics.RGB |
getRGB()
Returns the text color.
|
int |
hashCode() |
void |
setAlign(int align)
Sets the horizontal text alignment.
|
void |
setFontData(org.eclipse.swt.graphics.FontData fontData)
Sets the font.
|
void |
setFormat(PageNumberFormat format)
Sets the page number format.
|
void |
setRGB(org.eclipse.swt.graphics.RGB rgb)
Sets the text color.
|
org.eclipse.swt.graphics.FontData fontData
int align
org.eclipse.swt.graphics.RGB rgb
PageNumberFormat format
public PageNumberPageDecoration()
public PageNumberPageDecoration(int align)
align
- horizontal text alignment.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public org.eclipse.swt.graphics.FontData getFontData()
public void setFontData(org.eclipse.swt.graphics.FontData fontData)
fontData
- the new font.public int getAlign()
public void setAlign(int align)
align
- the horizontal text alignment.public org.eclipse.swt.graphics.RGB getRGB()
public void setRGB(org.eclipse.swt.graphics.RGB rgb)
rgb
- the new text color.public PageNumberFormat getFormat()
public void setFormat(PageNumberFormat format)
format
- the page number format.public Print createPrint(PageNumber pageNumber)
PageDecoration
createPrint
in interface PageDecoration
pageNumber
- the page number of the page being decorated.