|
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.FixSizePainter
Abstract Painter
implementation that has a fixed size, i.e. independent of the Graphics
context.
Constructor Summary | |
FixSizePainter()
Constructs a new FixSizePainter with a width and a height of 0. |
|
FixSizePainter(int width,
int height)
Constructs a new FixSizePainter with the given width and height. |
Method Summary | |
int |
getHeight()
Returns the height of the painter. |
java.awt.Dimension |
getSize(java.awt.Graphics g)
Returns the size of the Painter . |
int |
getWidth()
Returns the width of the painter. |
abstract void |
paint(java.awt.Graphics g,
int x,
int y)
Paints the target on the given Graphics . |
void |
setSize(int width,
int height)
Sets the size of the painer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FixSizePainter()
FixSizePainter
with a width and a height of 0.
public FixSizePainter(int width, int height)
FixSizePainter
with the given width and height.
width
- The width of the painer.height
- The height of the paint.Method Detail |
public void setSize(int width, int height)
width
- The width of the painer.height
- The height of the paint.public int getWidth()
public int getHeight()
public java.awt.Dimension getSize(java.awt.Graphics g)
Painter
Painter
.
getSize
in interface Painter
g
- The relevant Graphics
context.
Painter
.public abstract void paint(java.awt.Graphics g, int x, int y)
Painter
Graphics
.
paint
in interface Painter
g
- The Graphics
object that is used to paint.x
- The x coordinate of the upper left corner of the target.y
- The y coordinate of the upper left corner of the target.
|
ReportCat 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |