|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.paperclips.LayerPrint
public class LayerPrint
A Print which displays its child Prints on top each other.
Field Summary | |
---|---|
static int |
DEFAULT_ALIGN
Constant for the default alignment of child Prints. |
Constructor Summary | |
---|---|
LayerPrint()
Constructs a new LayerPrint. |
Method Summary | |
---|---|
void |
add(Print print)
Adds the given Print to this LayerPrint using the default alignment. |
void |
add(Print print,
int align)
Adds the given Print to this LayerPrint using the specified alignment. |
boolean |
equals(java.lang.Object obj)
|
LayerEntry[] |
getEntries()
Returns an array of entries in this LayerPrint. |
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 |
Field Detail |
---|
public static final int DEFAULT_ALIGN
Constructor Detail |
---|
public LayerPrint()
Method Detail |
---|
public void add(Print print)
print
- the Print to add.DEFAULT_ALIGN
public void add(Print print, int align)
print
- the Print to add.align
- the alignment for the Print. May be one of SWT.LEFT,
SWT.CENTER, or SWT.RIGHT.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public LayerEntry[] getEntries()
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 |