public abstract class AbstractPiece extends java.lang.Object implements PrintPiece
Modifier and Type | Field and Description |
---|---|
protected Device |
device
The device being printed to.
|
protected GC |
gc
Deprecated.
use the local GC in the
PrintPiece.paint(GC, int, int) method instead. |
Modifier | Constructor and Description |
---|---|
protected |
AbstractPiece(AbstractIterator iter,
Point size)
Constructos an AbstractPiece.
|
protected |
AbstractPiece(Device device,
GC gc,
Point size)
Constructs an AbstractPiece.
|
Modifier and Type | Method and Description |
---|---|
Point |
getSize()
Returns the dimensions of this PrintPiece, in pixels.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, paint
protected final Device device
protected final GC gc
PrintPiece.paint(GC, int, int)
method instead.protected AbstractPiece(Device device, GC gc, Point size)
device
- the device being printed to.gc
- a GC for drawing on the print device.size
- the value to be returned by getSize().protected AbstractPiece(AbstractIterator iter, Point size)
iter
- an AbstractIterator containing references to a Device and GC
which will be used for printing.size
- the value to be returned by getSize().public final Point getSize()
PrintPiece
getSize
in interface PrintPiece