net.sf.paperclips.decorator
Class BackgroundDecorator

java.lang.Object
  extended by net.sf.paperclips.decorator.BackgroundDecorator
All Implemented Interfaces:
PrintDecorator

public class BackgroundDecorator
extends java.lang.Object
implements PrintDecorator

Decorates prints with a background color.


Constructor Summary
BackgroundDecorator(org.eclipse.swt.graphics.RGB background)
          Constructs a BackgroundDecorator with the given background.
 
Method Summary
 Print decorate(Print target)
          Wraps the target in a decoration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackgroundDecorator

public BackgroundDecorator(org.eclipse.swt.graphics.RGB background)
Constructs a BackgroundDecorator with the given background.

Parameters:
background - the background color.
Method Detail

decorate

public Print decorate(Print target)
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 interface PrintDecorator
Parameters:
target - the print to wrap with a decoration.
Returns:
the target wrapped in a decoration.