voji.report
Class ReportPageNumber
java.lang.Object
|
+--voji.report.ReportComponent
|
+--voji.report.ReportText
|
+--voji.report.ReportPageNumber
- public class ReportPageNumber
- extends ReportText
This report component shows the current page number
Field Summary |
java.lang.String |
after
The text after the number itself |
java.lang.String |
before
The text before the number itself |
Fields inherited from class voji.report.ReportText |
align, CENTER, CHAR, font, hasInsets, left, LEFT, NEWLINE, right, RIGHT, text, type, WORD |
Constructor Summary |
ReportPageNumber(java.lang.String before,
java.lang.String after,
double left,
double right,
java.awt.Font font)
Constructs a new ReportPageNumber instance. |
ReportPageNumber(java.lang.String before,
java.lang.String after,
double left,
double right,
java.awt.Font font,
int align,
int type,
boolean hasInsets)
Constructs a new ReportPageNumber instance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
before
public java.lang.String before
- The text before the number itself
after
public java.lang.String after
- The text after the number itself
ReportPageNumber
public ReportPageNumber(java.lang.String before,
java.lang.String after,
double left,
double right,
java.awt.Font font,
int align,
int type,
boolean hasInsets)
- Constructs a new
ReportPageNumber
instance
- Parameters:
before
- the text to display before the number itselfafter
- the text to display after the number itselfleft
- the left extension of the textright
- the right extension of the textfont
- the font of the textalign
- the alignment
of the texttype
- the break type
of the texthasInsets
- whether the text should have insets
ReportPageNumber
public ReportPageNumber(java.lang.String before,
java.lang.String after,
double left,
double right,
java.awt.Font font)
- Constructs a new
ReportPageNumber
instance.
It uses a NEWLINE
break type,
no insets and
a RIGHT
text alignment.
- Parameters:
before
- the text to display before the number itselfafter
- the text to display after the number itselfleft
- the left extension of the textright
- the right extension of the textfont
- the font of the text
updateText
protected void updateText(PageGraphics g)
- Updates the text using the current page number
- Overrides:
updateText
in class ReportText
- Parameters:
g
- a graphical context to determine font sizes etc.