Package net.sf.paperclips.decorator
Class BorderDecorator
java.lang.Object
net.sf.paperclips.decorator.BorderDecorator
- All Implemented Interfaces:
PrintDecorator
Decorates prints with a border.
- Author:
- Matthew Hall
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BorderDecorator
Constructs a BorderDecorator.- Parameters:
border
- the initial border
-
-
Method Details
-
decorate
Description copied from interface:PrintDecorator
Wraps the target in a decoration. The decoration depends on the runtime class of the decorator.- Specified by:
decorate
in interfacePrintDecorator
- Parameters:
target
- the print to wrap with a decoration.- Returns:
- the target wrapped in a decoration.
-