Package net.sf.paperclips.decorator
Class CompoundDecorator
java.lang.Object
net.sf.paperclips.decorator.CompoundDecorator
- All Implemented Interfaces:
PrintDecorator
Decorates prints with multiple decorators.
- Author:
- Matthew Hall
-
Constructor Summary
ConstructorsConstructorDescriptionCompoundDecorator(PrintDecorator[] decorators) Constructs a CompoundDecorator. -
Method Summary
-
Constructor Details
-
CompoundDecorator
Constructs a CompoundDecorator.- Parameters:
decorators- the decorators, in order from innermost to outermost.
-
-
Method Details
-
decorate
Description copied from interface:PrintDecoratorWraps the target in a decoration. The decoration depends on the runtime class of the decorator.- Specified by:
decoratein interfacePrintDecorator- Parameters:
target- the print to wrap with a decoration.- Returns:
- the target wrapped in a decoration.
-