PrintDecoratorpublic 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)
PrintDecoratordecorate in interface PrintDecoratortarget - the print to wrap with a decoration.