com.jrefinery.report.targets.pageable.operations
Class RightAlignment

java.lang.Object
  extended bycom.jrefinery.report.targets.pageable.operations.BoundsAlignment
      extended bycom.jrefinery.report.targets.pageable.operations.HorizontalBoundsAlignment
          extended bycom.jrefinery.report.targets.pageable.operations.RightAlignment

public class RightAlignment
extends HorizontalBoundsAlignment

A utility class that can align a rectangle to the bottom edge of the current bounds.

Author:
Thomas Morgner

Constructor Summary
RightAlignment(java.awt.geom.Rectangle2D bounds)
          Creates a new alignment object.
 
Method Summary
 java.awt.geom.Rectangle2D align(java.awt.geom.Rectangle2D rect)
          Aligns a rectangle to the right of the reference bounds.
 
Methods inherited from class com.jrefinery.report.targets.pageable.operations.BoundsAlignment
getReferenceBounds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RightAlignment

public RightAlignment(java.awt.geom.Rectangle2D bounds)
Creates a new alignment object.

Parameters:
bounds - the reference bounds.
Method Detail

align

public java.awt.geom.Rectangle2D align(java.awt.geom.Rectangle2D rect)
Aligns a rectangle to the right of the reference bounds.

Specified by:
align in class BoundsAlignment
Parameters:
rect - the rectangle.
Returns:
the aligned rectangle.