|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.paperclips.AlignPrint
public class AlignPrint
A wrapper print that aligns its target vertically and/or horizontally. An AlignPrint is vertically greedy when the vertical alignment is SWT.CENTER or SWT.BOTTOM, and horizontally greedy when the horizontal alignment is SWT.CENTER and SWT.RIGHT.
Constructor Summary | |
---|---|
AlignPrint(Print target,
int hAlign,
int vAlign)
Constructs a new AlignPrint. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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
iterator
in interface Print
device
- the graphics device this Print will be drawn onto.gc
- the graphics context to be used for calculating layout and
drawing the Print's contents.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |