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

java.lang.Object
  |
  +--com.jrefinery.report.targets.pageable.operations.BoundsAlignment
        |
        +--com.jrefinery.report.targets.pageable.operations.VerticalBoundsAlignment
Direct Known Subclasses:
BottomAlignment, MiddleAlignment, TopAlignment

public abstract class VerticalBoundsAlignment
extends BoundsAlignment

An abstract base class for performing vertical alignment.

Author:
Thomas Morgner

Constructor Summary
protected VerticalBoundsAlignment(java.awt.geom.Rectangle2D bounds)
          Creates a new horizontal alignment object.
 
Method Summary
 java.awt.geom.Rectangle2D applyShift(java.awt.geom.Rectangle2D bounds)
          Applies a vertical shift to the given rectangle.
 void calculateShift(java.awt.geom.Rectangle2D bounds)
          Calculates the shift.
 float getHorizontalShift()
          Returns the horizontal shift.
 
Methods inherited from class com.jrefinery.report.targets.pageable.operations.BoundsAlignment
align, getReferenceBounds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerticalBoundsAlignment

protected VerticalBoundsAlignment(java.awt.geom.Rectangle2D bounds)
Creates a new horizontal alignment object.

Parameters:
bounds - the bounds.
Method Detail

getHorizontalShift

public float getHorizontalShift()
Returns the horizontal shift.

Returns:
the horizontal shift.

calculateShift

public void calculateShift(java.awt.geom.Rectangle2D bounds)
Calculates the shift.

Parameters:
bounds - the bounds.

applyShift

public java.awt.geom.Rectangle2D applyShift(java.awt.geom.Rectangle2D bounds)
Applies a vertical shift to the given rectangle. The bounds object is modified during this operation.

Parameters:
bounds - the bounds.
Returns:
the shifted rectangle.