Class BackgroundDecorator

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

public class BackgroundDecorator extends Object implements PrintDecorator
Decorates prints with a background color.
  • 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

      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.