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

java.lang.Object
  extended bycom.jrefinery.report.targets.pageable.operations.BoundsAlignment
      extended bycom.jrefinery.report.targets.pageable.operations.VerticalBoundsAlignment
          extended bycom.jrefinery.report.targets.pageable.operations.TopAlignment

public class TopAlignment
extends VerticalBoundsAlignment

A utility class that can align a rectangle to the top edge of the reference bounds.

Author:
Thomas Morgner

Constructor Summary
TopAlignment(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 top of the current 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

TopAlignment

public TopAlignment(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 top of the current bounds.

Specified by:
align in class BoundsAlignment
Parameters:
r - the region to align (null not permitted).
Returns:
the aligned rectangle.