Package net.sf.paperclips.decorator
Class BorderDecorator
- java.lang.Object
-
- net.sf.paperclips.decorator.BorderDecorator
-
- All Implemented Interfaces:
PrintDecorator
public class BorderDecorator extends java.lang.Object implements PrintDecorator
Decorates prints with a border.- See Also:
BorderPrint
,Border
-
-
Constructor Summary
Constructors Constructor Description BorderDecorator(Border border)
Constructs a BorderDecorator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Print
decorate(Print target)
Wraps the target in a decoration.
-
-
-
Constructor Detail
-
BorderDecorator
public BorderDecorator(Border border)
Constructs a BorderDecorator.- Parameters:
border
- the initial border
-
-
Method Detail
-
decorate
public Print decorate(Print target)
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.
-
-