|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.paperclips.NoBreakPrint
public class NoBreakPrint
A print wrapper which prevents its target from being broken into multiple pieces when printed. If there isn't enough room to print the target in one piece on the current page (or column, if it's inside a ColumnPrint), it will be printed on the next page (or column).
Care must be taken when using this class to avoid unprintable documents. If the target of a NoBreakPrint does not fit in the available space on the print device, the entire document will fail to print.
Constructor Summary | |
---|---|
NoBreakPrint(Print target)
Constructs a NoBreakPrint with the given target. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
Print |
getTarget()
Returns the print which will not be broken across pages. |
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 NoBreakPrint(Print target)
target
- the print toMethod 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 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 |