public final class RotatePiece extends java.lang.Object implements PrintPiece
Constructor and Description |
---|
RotatePiece(org.eclipse.swt.graphics.Device device,
PrintPiece target,
int angle,
org.eclipse.swt.graphics.Point size) |
Modifier and Type | Method and Description |
---|---|
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.
|
public RotatePiece(org.eclipse.swt.graphics.Device device, PrintPiece target, int angle, org.eclipse.swt.graphics.Point size)
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