Class BackgroundPiece
java.lang.Object
org.eclipse.nebula.paperclips.core.BackgroundPiece
- All Implemented Interfaces:
PrintPiece
class BackgroundPiece extends java.lang.Object implements PrintPiece
-
Constructor Summary
Constructors Constructor Description BackgroundPiece(PrintPiece target, org.eclipse.swt.graphics.RGB background, org.eclipse.swt.graphics.Device device) -
Method Summary
Modifier and Type Method Description voiddispose()Disposes the system resources allocated by this PrintPiece.org.eclipse.swt.graphics.PointgetSize()Returns the dimensions of this PrintPiece, in pixels.voidpaint(org.eclipse.swt.graphics.GC gc, int x, int y)Draws this PrintPiece on the given graphics device, at the given coordinates.
-
Constructor Details
-
BackgroundPiece
BackgroundPiece(PrintPiece target, org.eclipse.swt.graphics.RGB background, org.eclipse.swt.graphics.Device device)
-
-
Method Details
-
getSize
public org.eclipse.swt.graphics.Point getSize()Description copied from interface:PrintPieceReturns the dimensions of this PrintPiece, in pixels.- Specified by:
getSizein interfacePrintPiece- Returns:
- the dimensions of this PrintPiece, in pixels.
-
paint
public void paint(org.eclipse.swt.graphics.GC gc, int x, int y)Description copied from interface:PrintPieceDraws this PrintPiece on the given graphics device, at the given coordinates.- Specified by:
paintin interfacePrintPiece- Parameters:
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.
-
dispose
public void dispose()Description copied from interface:PrintPieceDisposes the system resources allocated by this PrintPiece. The dispose method is not a permanent disposal of a PrintPiece. It is intended to reclaim system resources, however future calls to paint(GC,int,int) may require that the resources be allocated again.- Specified by:
disposein interfacePrintPiece
-