net.sf.paperclips.decorator
Interface PrintDecorator
- All Known Implementing Classes:
- BackgroundDecorator, BorderDecorator, CompoundDecorator
public interface PrintDecorator
Interface for wrapping a print in a decoration. This interface is useful for
applying decorations uniformly without having to explicitly call constructors
for each item being decorated.
decorate
Print decorate(Print target)
- Wraps the target in a decoration. The decoration depends on the runtime
class of the decorator.
- Parameters:
target
- the print to wrap with a decoration.
- Returns:
- the target wrapped in a decoration.