public class AlignPrint extends java.lang.Object implements Print
Constructor and Description |
---|
AlignPrint(Print target,
int hAlign,
int vAlign)
Constructs a new AlignPrint.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
org.eclipse.swt.graphics.Point |
getAlignment()
Returns a Point with the x and y fields set to the horizontal and
vertical alignment, respectively.
|
Print |
getTarget()
Returns the wrapped print being aligned
|
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 AlignPrint(Print target, int hAlign, int vAlign)
target
- the print being aligned.hAlign
- the horizontal alignment. One of SWT.LEFT, SWT.CENTER,
SWT.RIGHT, or SWT.DEFAULT.vAlign
- the vertical alignment. One of SWT.TOP, SWT.CENTER,
SWT.BOTTOM, or SWT.DEFAULT.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public Print getTarget()
public org.eclipse.swt.graphics.Point getAlignment()
public PrintIterator iterator(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)
Print