|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.paperclips.PageNumberPageDecoration
public class PageNumberPageDecoration
A PageDecoration which displays the page number. This convenience class helps avoid the need for writing a new PageDecoration class if only a page number is needed. Getter and setter methods are provided for all the properties available in the PagePrint class itself.
Constructor Summary | |
---|---|
PageNumberPageDecoration()
Constructs a PageNumberPageDecoration with default font, alignment, and page number format. |
|
PageNumberPageDecoration(int align)
Constructs a PageNumberPageDecoration with the given alignment. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageNumberPageDecoration()
public PageNumberPageDecoration(int align)
align
- horizontal text alignment.Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |