Package net.sf.paperclips.decorator
Class BackgroundDecorator
- java.lang.Object
-
- net.sf.paperclips.decorator.BackgroundDecorator
-
- All Implemented Interfaces:
PrintDecorator
public class BackgroundDecorator extends java.lang.Object implements PrintDecorator
Decorates prints with a background color.- Author:
- Matthew Hall
-
-
Constructor Summary
Constructors Constructor Description BackgroundDecorator(org.eclipse.swt.graphics.RGB background)Constructs a BackgroundDecorator with the given background.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Printdecorate(Print target)Wraps the target in a decoration.
-
-
-
Method Detail
-
decorate
public Print decorate(Print target)
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.
-
-