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

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.LeftAlignment

public class LeftAlignment
extends HorizontalBoundsAlignment

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

Author:
Thomas Morgner

Constructor Summary
LeftAlignment(java.awt.geom.Rectangle2D bounds)
          Creates a new left alignment object.
 
Method Summary
 java.awt.geom.Rectangle2D align(java.awt.geom.Rectangle2D inner)
          Aligns a rectangle with the current 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

LeftAlignment

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

Parameters:
bounds - the bounds.
Method Detail

align

public java.awt.geom.Rectangle2D align(java.awt.geom.Rectangle2D inner)
Aligns a rectangle with the current bounds.

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