public class CompoundDecorator extends java.lang.Object implements PrintDecorator
| Constructor and Description |
|---|
CompoundDecorator(PrintDecorator[] decorators)
Constructs a CompoundDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
Print |
decorate(Print target)
Wraps the target in a decoration.
|
public CompoundDecorator(PrintDecorator[] decorators)
decorators - the decorators, in order from innermost to outermost.public Print decorate(Print target)
PrintDecoratordecorate in interface PrintDecoratortarget - the print to wrap with a decoration.