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

java.lang.Object
  |
  +--com.jrefinery.report.targets.pageable.operations.BoundsAlignment
        |
        +--com.jrefinery.report.targets.pageable.operations.VerticalBoundsAlignment
              |
              +--com.jrefinery.report.targets.pageable.operations.BottomAlignment

public class BottomAlignment
extends VerticalBoundsAlignment

A utility class that can align a Rectangle2D to the bottom edge of its reference bounds.

Author:
Thomas Morgner

Constructor Summary
BottomAlignment(java.awt.geom.Rectangle2D bounds)
          Creates a new alignment object.
 
Method Summary
 java.awt.geom.Rectangle2D align(java.awt.geom.Rectangle2D r)
          Aligns a rectangle to the bottom of the current reference bounds.
 
Methods inherited from class com.jrefinery.report.targets.pageable.operations.VerticalBoundsAlignment
applyShift, calculateShift, getHorizontalShift
 
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

BottomAlignment

public BottomAlignment(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 r)
Aligns a rectangle to the bottom of the current reference bounds.

Specified by:
align in class BoundsAlignment
Parameters:
r - the rectangle to align.
Returns:
a new rectangle resulting from the alignment operation.