PrintDecorator
public class BorderDecorator extends java.lang.Object implements PrintDecorator
BorderPrint
,
Border
Constructor | Description |
---|---|
BorderDecorator(Border border) |
Constructs a BorderDecorator.
|
Modifier and Type | Method | Description |
---|---|---|
Print |
decorate(Print target) |
Wraps the target in a decoration.
|
public BorderDecorator(Border border)
border
- the initial borderpublic Print decorate(Print target)
PrintDecorator
decorate
in interface PrintDecorator
target
- the print to wrap with a decoration.