public abstract class AbstractPiece extends java.lang.Object implements PrintPiece
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.swt.graphics.Device |
device
The device being printed to.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractPiece(AbstractIterator iter,
org.eclipse.swt.graphics.Point size)
Constructos an AbstractPiece.
|
protected |
AbstractPiece(org.eclipse.swt.graphics.Device device,
org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Point size)
Constructs an AbstractPiece.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.graphics.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 org.eclipse.swt.graphics.Device device
protected AbstractPiece(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.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, org.eclipse.swt.graphics.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 org.eclipse.swt.graphics.Point getSize()
PrintPiece
getSize
in interface PrintPiece