|
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
li.netcat.print.util.XYPainter
Implementation of a Painter that contains an arbitrary number of painters
positioned at individual offsets.
| Constructor Summary | |
XYPainter()
Constructs a new and empty XYPainter with a size of 100x100 pixel. |
|
XYPainter(int width,
int height)
Constructs a new and empty XYPainter with the given size. |
|
| Method Summary | |
void |
addPainter(Painter painter,
int x,
int y)
Adds a Painter to the list of painters. |
Painter |
getPainter(int index)
Returns the Painter at the specified index. |
int |
getPainterCount()
Returns the number of painters added to this XYPainter. |
void |
paint(java.awt.Graphics g,
int x,
int y)
Paints the target on the given Graphics. |
void |
setClip(boolean clip)
This property specifies, whether or not to use clipping. |
| Methods inherited from class li.netcat.print.util.FixSizePainter |
getHeight, getSize, getWidth, setSize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XYPainter()
XYPainter with a size of 100x100 pixel.
public XYPainter(int width,
int height)
XYPainter with the given size.
width - The width of the XYPainter.height - The height of the XYPainter.| Method Detail |
public void addPainter(Painter painter,
int x,
int y)
Painter to the list of painters.
painter - The Painter to be added.x - The x offset associated with the Painter.y - The y offset associated with the Painter.public Painter getPainter(int index)
Painter at the specified index.
index - The index of the Painter, it must be >= 0 and < getPainterCount().
Painter at the specified index.public int getPainterCount()
XYPainter.
XYPainter.public void setClip(boolean clip)
clip - Specify false to turn off clipping. The default is true.
public void paint(java.awt.Graphics g,
int x,
int y)
PainterGraphics.
paint in interface Painterpaint in class FixSizePainter
|
ReportCat 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||