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