Package net.sf.paperclips
Class BorderPrint
java.lang.Object
net.sf.paperclips.BorderPrint
- All Implemented Interfaces:
Print
A decorator that draws a border around the target print.
- Author:
- Matthew Hall
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBorderPrint
(Print target, Border border) Constructs a BorderPrint with the given target and border. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the border being applied to the target.Returns the wrapped print to which the border is being applied.int
hashCode()
iterator
(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc) Returns a PrintIterator for laying out the contents of this Print.
-
Constructor Details
-
BorderPrint
Constructs a BorderPrint with the given target and border.- Parameters:
target
- the print to decorate with a border.border
- the border which will be drawn around the target.
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getTarget
Returns the wrapped print to which the border is being applied.- Returns:
- the wrapped print to which the border is being applied.
-
getBorder
Returns the border being applied to the target.- Returns:
- the border being applied to the target.
-
iterator
public PrintIterator iterator(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc) Description copied from interface:Print
Returns a PrintIterator for laying out the contents of this Print. The iterator uses a snapshot of the print at the time this method is invoked, so subsequent changes to the Print will not affect the output of the iterator.
-