org.jfree.report.modules.output.pageable.base.operations
Class AlignmentTools

java.lang.Object
  |
  +--org.jfree.report.modules.output.pageable.base.operations.AlignmentTools

public final class AlignmentTools
extends java.lang.Object


Method Summary
static StrictBounds computeAlignmentBounds(MetaElement e)
          Computes the alignment for the given element and content.
static HorizontalBoundsAlignment getHorizontalLayout(ElementAlignment ha, StrictBounds bounds)
          Translates the given element alignment into a horizontal alignment object.
static VerticalBoundsAlignment getVerticalLayout(ElementAlignment va, StrictBounds bounds)
          Translates the given element alignment into a vertical alignment object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getVerticalLayout

public static VerticalBoundsAlignment getVerticalLayout(ElementAlignment va,
                                                        StrictBounds bounds)
Translates the given element alignment into a vertical alignment object.
Parameters:
va - the element alignment.
bounds - the bounds of the element
Returns:
the created alignment object.

getHorizontalLayout

public static HorizontalBoundsAlignment getHorizontalLayout(ElementAlignment ha,
                                                            StrictBounds bounds)
Translates the given element alignment into a horizontal alignment object.
Parameters:
ha - the element alignment.
bounds - the bounds of the element
Returns:
the created alignment object.

computeAlignmentBounds

public static StrictBounds computeAlignmentBounds(MetaElement e)
Computes the alignment for the given element and content.
Parameters:
e - the element that was used to create the content.
Returns:
the aligned content bounds.