net.sf.paperclips.decorator
Class BorderDecorator

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

public class BorderDecorator
extends java.lang.Object
implements PrintDecorator

Decorates prints with a border.

See Also:
BorderPrint, Border

Constructor Summary
BorderDecorator(Border border)
          Constructs a BorderDecorator.
 
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

BorderDecorator

public BorderDecorator(Border border)
Constructs a BorderDecorator.

Parameters:
border - the initial border
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.