|
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.LinePrintBorder
Implementation of a PrintBorder
that draws a line as border.
Constructor Summary | |
LinePrintBorder()
Constructs a new LinePrintBorder that doesn't paint opened lines and that uses
black as color and insets of 5. |
|
LinePrintBorder(boolean paintOpenedLines,
java.awt.Color color)
Constructs a new LinePrintBorder that uses insets of 5. |
Method Summary | |
java.awt.Insets |
getInsets(java.awt.Insets out)
Returns the Insets of this LinePrintBorder . |
boolean |
getPaintOpenedLines()
Returns true if the opened lines will be painted. |
PrintInsets |
getPrintInsets(Print print,
java.awt.Graphics g)
Returns the PrintInsets for a given print. |
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 |
setInsets(java.awt.Insets insets)
Sets the given Insets . |
void |
setPaintOpenedLines(boolean b)
Specifies, whether the opened lines will be painted or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LinePrintBorder()
LinePrintBorder
that doesn't paint opened lines and that uses
black as color and insets of 5.
public LinePrintBorder(boolean paintOpenedLines, java.awt.Color color)
LinePrintBorder
that uses insets of 5.
paintOpenedLines
- Specify true
if opened lines (break) should be painted.color
- The color of the line.Method Detail |
public void setInsets(java.awt.Insets insets)
Insets
.
insets
- The new insets to be used. This parameter is copied.public java.awt.Insets getInsets(java.awt.Insets out)
Insets
of this LinePrintBorder
.
out
- An insets object, not null.
public boolean getPaintOpenedLines()
public void setPaintOpenedLines(boolean b)
b
- Specify true
to paint the opend lines.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 |