public final class RotatePrint extends java.lang.Object implements Print
Note: On Windows, this class depends on a bugfix available as of Eclipse build 3.2, release candidate 3 (2006-04-28). Prior to this release, using RotatePrint triggers the bug, causing the document to scale very large on paper. This bug only manifests itself on paper, not with on-screen viewing.
RotatePrints are horizontally and vertically greedy. Greedy prints take up all the available space on the page.
| Constructor and Description |
|---|
RotatePrint(Print target)
Constructs a RotatePrint that rotates it's target 90 degrees
counter-clockwise.
|
RotatePrint(Print target,
int angle)
Constructs a RotatePrint.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getAngle()
Returns the angle by which the target will be rotated (one of 0, 90, 180,
or 270).
|
Print |
getTarget()
Returns the print to be rotated.
|
int |
hashCode() |
PrintIterator |
iterator(org.eclipse.swt.graphics.Device device,
org.eclipse.swt.graphics.GC gc)
Returns a PrintIterator for laying out the contents of this Print.
|
public RotatePrint(Print target)
target - the print to rotate.public RotatePrint(Print target, int angle)
target - the print to rotate.angle - the angle by which the target will be rotated, expressed in
degrees counter-clockwise. Positive values rotate
counter-clockwise, and negative values rotate clockwise. Must
be a multiple of 90.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic Print getTarget()
public int getAngle()
public PrintIterator iterator(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)
Print