|
ReportCat 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectli.netcat.print.util.DrawerPrintBorder
DrawerPrintBorder
is a simple implementation of PrintBorder
that uses two Drawer
s
to draw the hint before and after a break.
Constructor Summary | |
DrawerPrintBorder()
Consrtucts a new DrawerPrintBorder with two LabelDrawers using the text ">>". |
|
DrawerPrintBorder(Drawer topDrawer,
Drawer bottomDrawer)
Consrtucts a new DrawerPrintBorder using the given two Drawer s. |
Method Summary | |
Drawer |
getBottomDrawer()
Returns the drawer that is used to paint the bottom of an opened border. |
PrintInsets |
getPrintInsets(Print print,
java.awt.Graphics g)
Returns the PrintInsets for a given print. |
Drawer |
getTopDrawer()
Returns the drawer that is used to paint the top of an opened border. |
void |
paint(Print print,
java.awt.Graphics g,
PrintInsets margins,
int x,
int y,
int width,
int height,
boolean topOpened,
boolean bottomOpened)
Paints the PrintBorder on the given graphics. |
void |
setBottomDrawer(Drawer bottomDrawer)
Sets the bottom drawer. |
void |
setTopDrawer(Drawer topDrawer)
Sets the top drawer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DrawerPrintBorder()
DrawerPrintBorder
with two LabelDrawers
using the text ">>".
public DrawerPrintBorder(Drawer topDrawer, Drawer bottomDrawer)
DrawerPrintBorder
using the given two Drawer
s.
topDrawer
- The drawer that is used to paint the top of an opened border, can be null
.bottomDrawer
- The drawer that is used to paint the bottom of an opened border, can be null
.Method Detail |
public Drawer getTopDrawer()
public void setTopDrawer(Drawer topDrawer)
topDrawer
- The drawer that is used to paint the top of an opened border.public Drawer getBottomDrawer()
public void setBottomDrawer(Drawer bottomDrawer)
bottomDrawer
- The drawer that is used to paint the bottom of an opened border.public PrintInsets getPrintInsets(Print print, java.awt.Graphics g)
PrintBorder
PrintInsets
for a given print.
getPrintInsets
in interface PrintBorder
print
- The print that gets the border.g
- The relevant graphics object.
public void paint(Print print, java.awt.Graphics g, PrintInsets margins, int x, int y, int width, int height, boolean topOpened, boolean bottomOpened)
PrintBorder
PrintBorder
on the given graphics.
paint
in interface PrintBorder
print
- The print that gets the border.g
- The relevant graphics object to paint on.margins
- The margins to be respected.x
- The x of the upper left corner of the PrintBorder
.y
- The y of the upper left corner of the PrintBorder
.width
- The total with of the border.height
- The total height of the border.topOpened
- Specifies whether the top is opened (page break) or not.bottomOpened
- Specifies whether the bottom is opened (page break) or not.
|
ReportCat 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |