|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.paperclips.CompositePiece
public class CompositePiece
A composite PrintPiece for displaying child PrintPieces. This class is especially useful for Print implementations that perform layout of multiple child Prints.
Constructor Summary | |
---|---|
CompositePiece(CompositeEntry[] entries)
Constructs a CompositePiece with the given entries. |
|
CompositePiece(CompositeEntry[] entries,
org.eclipse.swt.graphics.Point size)
Constructs a CompositePrintPiece with the given entries and explicit size. |
|
CompositePiece(java.util.List entries)
Constructs a composite PrintPiece with the given entries. |
|
CompositePiece(java.util.List entries,
org.eclipse.swt.graphics.Point size)
Constructs a composite PrintPiece with the given entries and minimum size. |
Method Summary | |
---|---|
void |
dispose()
Disposes the system resources allocated by this PrintPiece. |
org.eclipse.swt.graphics.Point |
getSize()
Returns the dimensions of this PrintPiece, in pixels. |
void |
paint(org.eclipse.swt.graphics.GC gc,
int x,
int y)
Draws this PrintPiece on the given graphics device, at the given coordinates. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositePiece(CompositeEntry[] entries)
entries
- an array of entries that make up this PrintPiece.public CompositePiece(CompositeEntry[] entries, org.eclipse.swt.graphics.Point size)
entries
- an array of entries that make up this PrintPiece.size
- public CompositePiece(java.util.List entries)
entries
- an array of entries that make up this PrintPiece.public CompositePiece(java.util.List entries, org.eclipse.swt.graphics.Point size)
entries
- a list of CompositeEntry objects describing the child
PrintPieces.size
- a hint indicating the minimum size that should be reported
from getSize(). This constructor increase this size to fit any
entries that extend outside the given size.Method Detail |
---|
public org.eclipse.swt.graphics.Point getSize()
PrintPiece
getSize
in interface PrintPiece
public void paint(org.eclipse.swt.graphics.GC gc, int x, int y)
PrintPiece
paint
in interface PrintPiece
gc
- a graphics context for the graphics device.x
- the x coordinate where this PrintPiece will be drawn.y
- the x coordinate where this PrintPiece will be drawn.public void dispose()
PrintPiece
dispose
in interface PrintPiece
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |