Package net.sf.paperclips.decorator
Class BackgroundDecorator
java.lang.Object
net.sf.paperclips.decorator.BackgroundDecorator
- All Implemented Interfaces:
PrintDecorator
Decorates prints with a background color.
-
Constructor Summary
ConstructorsConstructorDescriptionBackgroundDecorator
(org.eclipse.swt.graphics.RGB background) Constructs a BackgroundDecorator with the given background. -
Method Summary
-
Constructor Details
-
BackgroundDecorator
public BackgroundDecorator(org.eclipse.swt.graphics.RGB background) Constructs a BackgroundDecorator with the given background.- Parameters:
background
- the background color.
-
-
Method Details
-
decorate
Description copied from interface:PrintDecorator
Wraps the target in a decoration. The decoration depends on the runtime class of the decorator.- Specified by:
decorate
in interfacePrintDecorator
- Parameters:
target
- the print to wrap with a decoration.- Returns:
- the target wrapped in a decoration.
-