|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.paperclips.AbstractPiece
public abstract class AbstractPiece
An abstract PrintPiece class.
| Field Summary | |
|---|---|
protected org.eclipse.swt.graphics.Device |
device
The device being printed to. |
protected org.eclipse.swt.graphics.GC |
gc
Deprecated. use the local GC in the PrintPiece.paint(GC, int, int) method instead. |
| Constructor Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
org.eclipse.swt.graphics.Point |
getSize()
Returns the dimensions of this PrintPiece, in pixels. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.paperclips.PrintPiece |
|---|
dispose, paint |
| Field Detail |
|---|
protected final org.eclipse.swt.graphics.Device device
protected final org.eclipse.swt.graphics.GC gc
PrintPiece.paint(GC, int, int) method instead.
| Constructor Detail |
|---|
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().| Method Detail |
|---|
public final org.eclipse.swt.graphics.Point getSize()
PrintPiece
getSize in interface PrintPiece
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||